fomu-flash: exit nonzero on write error
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
798a0f167e
commit
63315d9a58
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user