mirror of
https://github.com/eddyem/BTA_utils.git
synced 2026-08-13 19:49:24 +03:00
fix bug with bad data from modbus: add 15 tries
This commit is contained in:
@@ -116,6 +116,7 @@ int main(int argc, char *argv[]){
|
||||
params_ans a = check_meteo_params();
|
||||
if(a == ANS_LOSTCONN){
|
||||
LOG("Lost connection with device, reconnect!");
|
||||
clear_flags();
|
||||
return 1;
|
||||
}
|
||||
if(a == ANS_OK){
|
||||
|
||||
Reference in New Issue
Block a user