From 167e31661fd613c8391ee9432a959d134f3a9c20 Mon Sep 17 00:00:00 2001 From: "John D. Martin III" Date: Tue, 9 Mar 2021 08:59:14 -0500 Subject: [PATCH] add return for pgpio fail in net --- netledPi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/netledPi.c b/netledPi.c index 8619b85..9136aef 100644 --- a/netledPi.c +++ b/netledPi.c @@ -226,6 +226,7 @@ int main(int argc, char **argv) { /* If we can't set up pigpio, then just bail */ if( gpioInitialise() < 0 ) { fprintf( stderr, "Unable to setup the piGPIO library. STOP."); + return -1; } gpioSetMode( o_gpiopin_rx, PI_OUTPUT ); gpioSetMode( o_gpiopin_tx, PI_OUTPUT );