Use new telem text function

This commit is contained in:
3djc
2020-09-23 13:05:53 +02:00
parent c0c205a92d
commit e64b9925bf
+1 -4
View File
@@ -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);
}
}