Commit 9c1af4af authored by Ivan Tyagov's avatar Ivan Tyagov

Printout number of recoveries.

parent cfbf7f71
......@@ -315,7 +315,8 @@ void callbackCheckHeartBeat() {
}
else if (CURRENT_STATE == STATE_DOWN) {
// initial keep alive received, printout
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND, "UP (recovered): %s", coupler_id_str);
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND,
"UP (recovered %d times): %s", SAFE_MODE_STATE_COUNTER, coupler_id_str);
}
CURRENT_STATE = STATE_UP;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment