fomu-flash: exit nonzero on write error

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-04-14 14:11:06 +08:00
parent 798a0f167e
commit 63315d9a58

View File

@ -468,7 +468,7 @@ int main(int argc, char **argv) {
break; break;
} }
close(fd); close(fd);
spiWrite(spi, 0, bfr, stat.st_size); ret += spiWrite(spi, 0, bfr, stat.st_size);
break; break;
} }