add return for pgpio fail in net

This commit is contained in:
John D. Martin III 2021-03-09 08:59:14 -05:00
parent f81b59792a
commit 167e31661f

View File

@ -226,6 +226,7 @@ int main(int argc, char **argv) {
/* If we can't set up pigpio, then just bail */ /* If we can't set up pigpio, then just bail */
if( gpioInitialise() < 0 ) { if( gpioInitialise() < 0 ) {
fprintf( stderr, "Unable to setup the piGPIO library. STOP."); fprintf( stderr, "Unable to setup the piGPIO library. STOP.");
return -1;
} }
gpioSetMode( o_gpiopin_rx, PI_OUTPUT ); gpioSetMode( o_gpiopin_rx, PI_OUTPUT );
gpioSetMode( o_gpiopin_tx, PI_OUTPUT ); gpioSetMode( o_gpiopin_tx, PI_OUTPUT );