Add OLED and button diagnostics
This commit is contained in:
+9
-1
@@ -5,6 +5,7 @@
|
||||
#include "esp_log.h"
|
||||
#include "esp_psram.h"
|
||||
#include "network_console.h"
|
||||
#include "local_ui_hw_test.h"
|
||||
#include "rs232_hw_test.h"
|
||||
#include "rs232_port_owner.h"
|
||||
#include "secure_random.h"
|
||||
@@ -35,7 +36,7 @@ static const char *TAG = "firmware";
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
ESP_LOGI(TAG, "ESP32-S3 Serial Swiss Army Knife SSH transport phase started");
|
||||
ESP_LOGI(TAG, "ESP32-S3 Serial Swiss Army Knife Phase 7A diagnostics started");
|
||||
|
||||
if (esp_psram_is_initialized()) {
|
||||
ESP_LOGI(TAG, "PSRAM initialized: %u bytes", (unsigned int)esp_psram_get_size());
|
||||
@@ -55,6 +56,13 @@ void app_main(void)
|
||||
ESP_ERROR_CHECK(rs232_port_owner_init());
|
||||
ESP_ERROR_CHECK(rs232_hw_test_init());
|
||||
|
||||
/* A missing or miswired optional display must never remove recovery paths. */
|
||||
esp_err_t local_ui_error = local_ui_hw_test_init();
|
||||
if (local_ui_error != ESP_OK) {
|
||||
ESP_LOGW(TAG, "Local UI diagnostics unavailable: %s",
|
||||
esp_err_to_name(local_ui_error));
|
||||
}
|
||||
|
||||
serial_config_t serial_config;
|
||||
bool used_stored_config = false;
|
||||
esp_err_t config_error = serial_config_load(&serial_config, &used_stored_config);
|
||||
|
||||
Reference in New Issue
Block a user