Wed, 12 May 2021 21:17:59 +0200
Improved logging if wiringpi failed.
thermferm/thermferm.c | file | annotate | diff | comparison | revisions |
--- a/thermferm/thermferm.c Sun Sep 27 17:08:27 2020 +0200 +++ b/thermferm/thermferm.c Wed May 12 21:17:59 2021 +0200 @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (C) 2014-2020 + * Copyright (C) 2014-2021 * * Michiel Broek <mbroek at mbse dot eu> * @@ -910,8 +910,10 @@ } #ifdef HAVE_WIRINGPI_H - if (wiringPiSetup () ) + if (wiringPiSetup () ) { + syslog(LOG_NOTICE, "Error wiringPiSetup(): halted"); return 1; + } #endif if ((rc = initLCD (Config.lcd_cols, Config.lcd_rows))) {