make wait uint16_t to allow max 2000

This commit is contained in:
proddy
2025-11-03 18:18:08 +01:00
parent 0b2df96461
commit 01136a19a5

View File

@@ -214,7 +214,7 @@ bool System::command_message(const char * value, const int8_t id, JsonObject out
EMSESP::webSchedulerService.computed_value.clear();
EMSESP::webSchedulerService.raw_value = value;
for (uint8_t wait = 0; wait < 2000 && !EMSESP::webSchedulerService.raw_value.empty(); wait++) {
for (uint16_t wait = 0; wait < 2000 && !EMSESP::webSchedulerService.raw_value.empty(); wait++) {
delay(1);
}