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;
}
signal(SIGINT, ctrlCHandler);
+ printf("Set up button pins\n");
pinMode(PWRBTN, INPUT);
pinMode(CHNL1BTN, INPUT);
pinMode(CHNL2BTN, INPUT);
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);