Fix fastboot flashall
The return value of load_buf was swapped so we were erroneously failing. Bug: 29278988 Change-Id: I777bfbc174f50ec0b71e973db36543eb37d160db
This commit is contained in:
parent
4e6cf008c6
commit
2110d0aa08
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue