lpcmanager
Clone
Summary
Browse
Changes
Graph
New widget HMI:DropDownIndexed was created to accommodate runtime changes of dropdown options, as well as mitigate string length limitations. Redmine issue #4530
2 months ago, Dino Kosic
c1a0999e3ac9
New widget HMI:DropDownIndexed was created to accommodate runtime changes of dropdown options, as well as mitigate string length limitations. Redmine issue #4530
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 */
}
}