From e64b9925bf0f304e3103051c91f3eed5dd92cbc6 Mon Sep 17 00:00:00 2001 From: 3djc Date: Wed, 23 Sep 2020 13:05:53 +0200 Subject: [PATCH] Use new telem text function --- radio/src/telemetry/ghost.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/radio/src/telemetry/ghost.cpp b/radio/src/telemetry/ghost.cpp index 664d7a7a2..406db73d0 100755 --- a/radio/src/telemetry/ghost.cpp +++ b/radio/src/telemetry/ghost.cpp @@ -86,11 +86,8 @@ void processGhostTelemetryValue(uint8_t index, int32_t value) void processGhostTelemetryValueString(const GhostSensor * sensor, const char * str) { - int i = 0; if (TELEMETRY_STREAMING()) { - do { - setTelemetryValue(PROTOCOL_TELEMETRY_GHOST, sensor->id, 0, 0, str[i], UNIT_TEXT, i); - } while (str[i++] != 0); + setTelemetryText(PROTOCOL_TELEMETRY_GHOST, sensor->id, 0, 0, str); } }