From 0960aad83c36c724de2fd1ff6a1c94d7aa3b345e Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Mon, 25 Jan 2021 22:43:40 +0100 Subject: [PATCH] iOS step counter reports to topic ../step (singular) addresses https://github.com/owntracks/ios/issues/660 --- recorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recorder.c b/recorder.c index 9e0f714..0eae0c6 100644 --- a/recorder.c +++ b/recorder.c @@ -671,7 +671,7 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle else if (!strcmp(j->string_, "card")) _type = T_CARD; else if (!strcmp(j->string_, "cmd")) _type = T_CMD; else if (!strcmp(j->string_, "lwt")) _type = T_LWT; - else if (!strcmp(j->string_, "steps")) _type = T_STEPS; + else if (!strcmp(j->string_, "step")) _type = T_STEPS; else if (!strcmp(j->string_, "transition")) _type = T_TRANSITION; else if (!strcmp(j->string_, "waypoint")) _type = T_WAYPOINT; else if (!strcmp(j->string_, "waypoints")) _type = T_WAYPOINTS;