From 63315d9a58f15292524cc5975ccf840e1300b416 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Wed, 14 Apr 2021 14:11:06 +0800 Subject: [PATCH] fomu-flash: exit nonzero on write error Signed-off-by: Sean Cross --- fomu-flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fomu-flash.c b/fomu-flash.c index 4567407..f567420 100755 --- a/fomu-flash.c +++ b/fomu-flash.c @@ -468,7 +468,7 @@ int main(int argc, char **argv) { break; } close(fd); - spiWrite(spi, 0, bfr, stat.st_size); + ret += spiWrite(spi, 0, bfr, stat.st_size); break; }