From 6e02d7bddb3b00e62cbe636d195de363d27e9bec Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sat, 8 Jun 2024 15:46:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9B=B1=EF=B8=8F=20Removes=20std=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/lib/ESP32-sveltekit/MotionService.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp32/lib/ESP32-sveltekit/MotionService.h b/esp32/lib/ESP32-sveltekit/MotionService.h index 2746319..4b908a2 100644 --- a/esp32/lib/ESP32-sveltekit/MotionService.h +++ b/esp32/lib/ESP32-sveltekit/MotionService.h @@ -97,7 +97,7 @@ class MotionService ESP_LOGV("MotionService", "Mode %d", root["data"].as()); motionState = (MOTION_STATE)root["data"].as(); char output[2]; - sprintf(output, "%d", motionState); + sprintf(output, "%d", (int)motionState); _socket->emit(MODE_EVENT, output, String(originId).c_str()); } @@ -147,7 +147,7 @@ class MotionService } void loop() { - if (auto currentMillis = millis(); !_lastUpdate || (currentMillis - _lastUpdate) >= MotionInterval) { + if (int currentMillis = millis(); !_lastUpdate || (currentMillis - _lastUpdate) >= MotionInterval) { _lastUpdate = currentMillis; if (updateMotion()) syncAngles(); }