Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2110d0aa authored by Alex Light's avatar Alex Light
Browse files

Fix fastboot flashall

The return value of load_buf was swapped so we were erroneously
failing.

Bug: 29278988
Change-Id: I777bfbc174f50ec0b71e973db36543eb37d160db
parent 4e6cf008
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1168,7 +1168,7 @@ static void do_flashall(Transport* transport, const std::string& slot_override,
        if (!slot) continue;
        fname = find_item_given_name(images[i].img_name, product);
        fastboot_buffer buf;
        if (load_buf(transport, fname.c_str(), &buf)) {
        if (!load_buf(transport, fname.c_str(), &buf)) {
            if (images[i].is_optional) continue;
            die("could not load %s\n", images[i].img_name);
        }