lpcmanager
Clone
Summary
Browse
Changes
Graph
Enable SVGHMI on all archs, including SOM28 now
py2compat
11 months ago, Edouard Tisserant
d1ce2ccfe3d8
Enable SVGHMI on all archs, including SOM28 now
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 */
}
}