From: John Janus Date: Tue, 29 Aug 2017 16:36:32 +0000 (+0200) Subject: small fixes X-Git-Url: https://git.johnzone.org/?a=commitdiff_plain;h=c3d0eaf72519448cac6113ad2fc195f8eefc1891;p=FakeRadio.git small fixes --- diff --git a/simple_try.c b/simple_try.c index ef9f037..af8476c 100644 --- a/simple_try.c +++ b/simple_try.c @@ -17,7 +17,7 @@ static volatile bool running = true; static volatile bool pwrOn = false; static volatile bool chnl1 = true; -static volatile bool sthchanged = false; +//static volatile bool sthchanged = false; pthread_cond_t* wakeup; pthread_mutex_t* mut; @@ -58,6 +58,7 @@ int main(void) { } signal(SIGINT, ctrlCHandler); + printf("Set up button pins\n"); pinMode(PWRBTN, INPUT); pinMode(CHNL1BTN, INPUT); pinMode(CHNL2BTN, INPUT); @@ -67,7 +68,7 @@ int main(void) { if (wiringPiISR(PWRBTN, INT_EDGE_RISING, pwrBtn)) printf("failed to initialize pwrBtn\n"); if (wiringPiISR(CHNL1BTN, INT_EDGE_RISING, chnl1Btn)) printf("failed to initialize chnl1Btn\n"); if (wiringPiISR(CHNL2BTN, INT_EDGE_RISING, chnl2Btn)) printf("failed to initialize chnl2Btn\n"); - printf("Set LED Pins to output\n"); + printf("Set LED pins to output\n"); pinMode(PWRLED, OUTPUT); pinMode(CHNL1LED, OUTPUT);