aboutsummaryrefslogtreecommitdiff
path: root/vote
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-16 21:13:48 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-16 21:13:48 +0200
commit120ac51294ddae7b479c916382cd8be96f39cf2d (patch)
treeca77f93356850223fa7a1c6320e83af45b6b2a0a /vote
parent7f68479a6cd40233271850e206ac68c13c302e98 (diff)
compose plotter data with printf() (not println())
Diffstat (limited to 'vote')
-rw-r--r--vote/vote.ino3
1 files changed, 2 insertions, 1 deletions
diff --git a/vote/vote.ino b/vote/vote.ino
index caa4fbc..bce78ef 100644
--- a/vote/vote.ino
+++ b/vote/vote.ino
@@ -191,7 +191,8 @@ class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
String id_mangled = advertisedDevice.getName();
id_mangled.replace(' ', '_');
id_mangled.replace(':', '=');
- Serial.println(id_mangled + ":" + EddystoneTLM.getTemp());
+ Serial.printf("%s:%d\n",
+ id_mangled.c_str(), EddystoneTLM.getTemp());
#endif
unsigned long now = millis();