fomu-flash: exit nonzero on write error

Signed-off-by: Sean Cross <sean@xobs.io>
master
Sean Cross 1 year ago
parent 798a0f167e
commit 63315d9a58
  1. 2
      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;
}

Loading…
Cancel
Save