lpcmanager

Add 'GOT_112' and 'LHC2_GOT_112' products

2023-11-22, Edouard Tisserant
eb8d80e3ee88
Add 'GOT_112' and 'LHC2_GOT_112' products
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 */
}
}