28 int num_ssids = 0; ///< Number of SSIDs we know |
28 int num_ssids = 0; ///< Number of SSIDs we know |
29 struct strStations editAP; ///< Data of station to edit |
29 struct strStations editAP; ///< Data of station to edit |
30 char sensors[DS18B20_MAX][17]; ///< Sensors to select |
30 char sensors[DS18B20_MAX][17]; ///< Sensors to select |
31 uint32_t err_connect = 0; ///< Connect error count |
31 uint32_t err_connect = 0; ///< Connect error count |
32 uint32_t err_alarm = 0; ///< Alarm watchdog error count |
32 uint32_t err_alarm = 0; ///< Alarm watchdog error count |
33 |
33 uint32_t err_temp = 0; ///< DS18B20 read errors |
34 |
34 |
35 extern const esp_app_desc_t *app_desc; ///< App description |
35 extern const esp_app_desc_t *app_desc; ///< App description |
36 extern unit_t units[3]; ///< Pressure test units |
36 extern unit_t units[3]; ///< Pressure test units |
37 extern SemaphoreHandle_t xSemaphoreUnits; ///< Units lock semaphore |
37 extern SemaphoreHandle_t xSemaphoreUnits; ///< Units lock semaphore |
38 extern DS18B20_State *ds18b20_state; ///< DS18B20 state |
38 extern DS18B20_State *ds18b20_state; ///< DS18B20 state |
712 /* |
712 /* |
713 * @brief The counters display screen. |
713 * @brief The counters display screen. |
714 */ |
714 */ |
715 void screen_counters() |
715 void screen_counters() |
716 { |
716 { |
717 screen_top("Software tellers"); |
717 char buf[65]; |
718 menu_line(0, 1, 25, "Network %d", err_connect); |
718 |
719 menu_line(0, 1, 37, "Watchdog %d", err_alarm); |
719 screen_top("Software fouten"); |
|
720 snprintf(buf, 64, "Network %4d", err_connect); |
|
721 u8g2_DrawStr(&u8g2, 1, 28, buf); |
|
722 snprintf(buf, 64, "Watchdog %4d", err_alarm); |
|
723 u8g2_DrawStr(&u8g2, 1, 43, buf); |
|
724 snprintf(buf, 64, "DS18B20 %4d", err_temp); |
|
725 u8g2_DrawStr(&u8g2, 1, 59, buf); |
720 u8g2_SendBuffer(&u8g2); |
726 u8g2_SendBuffer(&u8g2); |
721 } |
727 } |
722 |
728 |
723 |
729 |
724 |
730 |