lpcmanager

Create new widget - HMI:TouchDetect that can be added as page sibling to detect screen touches independently of screen saver and set PLC variable accordingly
pthread_mutex_lock(&UART_WakeCondLock);
UART_task_active = 0;
pthread_cond_signal(&UART_WakeCond);
pthread_mutex_unlock(&UART_WakeCondLock);
pthread_join(UART_task, NULL);
closeserial(UART_fd);