FreeCalypso > hg > freecalypso-hwlab
diff lcdtest/busops.c @ 27:4b7cac119fb5
lcdtest: added our own local exitcodes.h header
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 May 2018 21:49:46 +0000 |
parents | 5a602e512b12 |
children |
line wrap: on
line diff
--- a/lcdtest/busops.c Sun May 27 21:36:07 2018 +0000 +++ b/lcdtest/busops.c Sun May 27 21:49:46 2018 +0000 @@ -3,6 +3,7 @@ #include <stdlib.h> #include <unistd.h> #include <ftdi.h> +#include "exitcodes.h" extern struct ftdi_context ftdi; @@ -11,7 +12,7 @@ { if (ftdi_write_data(&ftdi, cmd, cmdlen) != cmdlen) { fprintf(stderr, "FTDI write error: %s\n", ftdi.error_str); - exit(1); + exit(ERROR_FTDI); } }