rtu autoreset fixed

pull/2/head
Mateusz Lubecki 2020-10-30 15:22:45 +01:00
rodzic 69d257fafd
commit 2038b135e1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -212,7 +212,7 @@ int32_t rtu_serial_pool(rtu_pool_queue_t* queue, srl_context_t* serial_context)
rte_rtu_number_of_serial_io_errors++;
// stupid workaround. If there is a lot of I/O errors reset the controller
if (rte_rtu_number_of_serial_io_errors == (RTU_NUMBER_OF_ERRORS_TO_TRIG_STATUS * 4)) {
if (rte_rtu_number_of_serial_io_errors >= (RTU_NUMBER_OF_ERRORS_TO_TRIG_STATUS * 7)) {
rte_main_reboot_req = 1;
}
}