This commit is contained in:
Phillip Kühne 2025-02-12 21:56:55 +01:00
parent 7c349a3289
commit 1730ea958c
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA
2 changed files with 4 additions and 4 deletions

View File

@ -50,12 +50,12 @@ void vTaskUpdate(void *pvParameters) {
PowerParameters::PowerConsumers::WIFI, PowerParameters::PowerConsumers::WIFI,
PowerParameters::CurrentConsumptions::CURRENT_WIFI_PEAK + PowerParameters::CurrentConsumptions::CURRENT_WIFI_PEAK +
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE,
MESSH_MAX_EXECUTION_DELAY_MS, NULL); MESH_MAX_EXECUTION_DELAY_MS, NULL);
mesh.update(); mesh.update();
Power::waitForCurrentAllowance( Power::waitForCurrentAllowance(
PowerParameters::PowerConsumers::WIFI, PowerParameters::PowerConsumers::WIFI,
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, 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( Power::waitForCurrentAllowance(
PowerParameters::PowerConsumers::WIFI, PowerParameters::PowerConsumers::WIFI,
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE, 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.init(MESH_PREFIX, MESH_PASSWORD, &userScheduler, MESH_PORT);
mesh.onReceive(&receivedCallback); mesh.onReceive(&receivedCallback);
mesh.onNewConnection(&newConnectionCallback); mesh.onNewConnection(&newConnectionCallback);

View File

@ -8,7 +8,7 @@
#define MESH_PREFIX "DEZIBOT_MESH" #define MESH_PREFIX "DEZIBOT_MESH"
#define MESH_PASSWORD "somethingSneaky" #define MESH_PASSWORD "somethingSneaky"
#define MESH_PORT 5555 #define MESH_PORT 5555
#define MESSH_MAX_EXECUTION_DELAY_MS 10 #define MESH_MAX_EXECUTION_DELAY_MS 10