⛱️ Removes std warnings

This commit is contained in:
Rune Harlyk
2024-06-08 15:46:12 +02:00
committed by Rune Harlyk
parent 5e946343f2
commit 6e02d7bddb
+2 -2
View File
@@ -97,7 +97,7 @@ class MotionService
ESP_LOGV("MotionService", "Mode %d", root["data"].as<int>());
motionState = (MOTION_STATE)root["data"].as<int>();
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();
}