Use new telem text function
This commit is contained in:
@@ -86,11 +86,8 @@ void processGhostTelemetryValue(uint8_t index, int32_t value)
|
|||||||
|
|
||||||
void processGhostTelemetryValueString(const GhostSensor * sensor, const char * str)
|
void processGhostTelemetryValueString(const GhostSensor * sensor, const char * str)
|
||||||
{
|
{
|
||||||
int i = 0;
|
|
||||||
if (TELEMETRY_STREAMING()) {
|
if (TELEMETRY_STREAMING()) {
|
||||||
do {
|
setTelemetryText(PROTOCOL_TELEMETRY_GHOST, sensor->id, 0, 0, str);
|
||||||
setTelemetryValue(PROTOCOL_TELEMETRY_GHOST, sensor->id, 0, 0, str[i], UNIT_TEXT, i);
|
|
||||||
} while (str[i++] != 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user