Watchdog to log baud rate
This commit is contained in:
@@ -2986,15 +2986,19 @@ script:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Report UART
|
// Report UART
|
||||||
ESP_LOGD(TAG, "UART queue: %d", tf_uart->available());
|
ESP_LOGD(TAG, "UART:");
|
||||||
|
ESP_LOGD(TAG, " Baud rate: %d bps", tf_uart->get_baud_rate());
|
||||||
|
ESP_LOGD(TAG, " Queue size: %d", tf_uart->available());
|
||||||
|
|
||||||
// Report Nextion status
|
// Report Nextion status
|
||||||
nextion_init->publish_state(nextion_init->state and disp1->is_setup());
|
nextion_init->publish_state(nextion_init->state and disp1->is_setup());
|
||||||
ESP_LOGD(TAG, "Nextion:");
|
ESP_LOGD(TAG, "Nextion:");
|
||||||
if (disp1->is_setup())
|
if (disp1->is_setup())
|
||||||
ESP_LOGD(TAG, " Is setup: True");
|
ESP_LOGD(TAG, " Is setup: True");
|
||||||
else if (disp1->is_detected())
|
else {
|
||||||
ESP_LOGW(TAG, " Is detected: %s", disp1->is_detected() ? "True" : "False");
|
ESP_LOGW(TAG, " Is setup: False");
|
||||||
|
ESP_LOGW(TAG, " Is detected: %s", disp1->is_detected() ? "True" : "False");
|
||||||
|
}
|
||||||
if (nextion_init->state)
|
if (nextion_init->state)
|
||||||
ESP_LOGD(TAG, " Init: True");
|
ESP_LOGD(TAG, " Init: True");
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user