lpcmanager
Clone
Summary
Browse
Changes
Graph
Add "Manage Alarms" button. opening a dumb choice dialog.
som6
2020-09-07, Edouard Tisserant
c097dedf00a4
Add "Manage Alarms" button. opening a dumb choice dialog.
if(!pthread_mutex_lock(&UART_ReadMutex)){
int prevstate;
if((prevstate=uartDevReadBuf_plc_state) == FULL){
uartDevReadBuf_plc_state = LOCKED;
}
pthread_mutex_unlock(&UART_ReadMutex);
if(prevstate == FULL){
%(retrieve_code)s
/* unlock plc buffer */
uartDevReadBuf_plc_state = EMPTY;
}else{
/* No new data -> no update */
}
}