From 2689093485a3140d32b54e68d806f800ae2aac39 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Fri, 5 Jul 2024 20:28:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=AE=20Add=20c=5Fstr()=20to=20origin=20?= =?UTF-8?q?id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/lib/ESP32-sveltekit/MotionService.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32/lib/ESP32-sveltekit/MotionService.h b/esp32/lib/ESP32-sveltekit/MotionService.h index 9c872c6..84c9b5e 100644 --- a/esp32/lib/ESP32-sveltekit/MotionService.h +++ b/esp32/lib/ESP32-sveltekit/MotionService.h @@ -100,7 +100,7 @@ class MotionService char output[100]; sprintf(output, "[%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%.1f,%.1f]", angles[0], angles[1], angles[2], angles[3], angles[4], angles[5], angles[6], angles[7], angles[8], angles[9], angles[10], angles[11]); - _socket->emit(ANGLES_EVENT, output, String(originId).c_str()); + _socket->emit(ANGLES_EVENT, output, originId.c_str()); } float lerp(float start, float end, float t) {