lpcmanager
Clone
Summary
Browse
Changes
Graph
Add new POU: get_wifi_settings
14 months ago, Dino Kosic
698bb7de8452
Add new POU: get_wifi_settings
if(!pthread_mutex_lock(&UART_WriteMutex)){
int prevstate;
prevstate=uartDevWriteBuf_plc_state;
uartDevWriteBuf_plc_state = LOCKED;
pthread_mutex_unlock(&UART_WriteMutex);
%(publish_code)s
/* unlock plc buffer */
uartDevWriteBuf_plc_state = FULL;
/* wakeup task */
pthread_mutex_lock(&UART_WakeCondLock);
UART_WakeCondValue = 1;
pthread_cond_signal(&UART_WakeCond);
pthread_mutex_unlock(&UART_WakeCondLock);
}