Change approach of notifying of power problem to be more beginner friendly

This commit is contained in:
2025-02-13 21:34:27 +01:00
parent 4c13eb593e
commit 598ac75e32
6 changed files with 7 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ void Communication::begin(void) {
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE,
MESH_MAX_EXECUTION_DELAY_MS, NULL)) {
ESP_LOGE(TAG, "Failed to get power for mesh initialization");
throw "Failed to get power for mesh initialization";
Serial.println("Failed to get power for mesh initialization");
}
mesh.init(MESH_PREFIX, MESH_PASSWORD, &userScheduler, MESH_PORT);
mesh.onReceive(&receivedCallback);