diff --git a/src/communication/Communication.cpp b/src/communication/Communication.cpp index d2ef5d8..da2a005 100644 --- a/src/communication/Communication.cpp +++ b/src/communication/Communication.cpp @@ -50,12 +50,12 @@ void vTaskUpdate(void *pvParameters) { PowerParameters::PowerConsumers::WIFI, PowerParameters::CurrentConsumptions::CURRENT_WIFI_PEAK + PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, - MESSH_MAX_EXECUTION_DELAY_MS, NULL); + MESH_MAX_EXECUTION_DELAY_MS, NULL); mesh.update(); Power::waitForCurrentAllowance( PowerParameters::PowerConsumers::WIFI, PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, - MESSH_MAX_EXECUTION_DELAY_MS, NULL); + MESH_MAX_EXECUTION_DELAY_MS, NULL); } } @@ -77,7 +77,7 @@ void Communication::begin(void) { Power::waitForCurrentAllowance( PowerParameters::PowerConsumers::WIFI, PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, - MESSH_MAX_EXECUTION_DELAY_MS, NULL); + MESH_MAX_EXECUTION_DELAY_MS, NULL); mesh.init(MESH_PREFIX, MESH_PASSWORD, &userScheduler, MESH_PORT); mesh.onReceive(&receivedCallback); mesh.onNewConnection(&newConnectionCallback); diff --git a/src/communication/Communication.h b/src/communication/Communication.h index 215fc9f..e4c13df 100644 --- a/src/communication/Communication.h +++ b/src/communication/Communication.h @@ -8,7 +8,7 @@ #define MESH_PREFIX "DEZIBOT_MESH" #define MESH_PASSWORD "somethingSneaky" #define MESH_PORT 5555 -#define MESSH_MAX_EXECUTION_DELAY_MS 10 +#define MESH_MAX_EXECUTION_DELAY_MS 10