mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 03:19:53 +03:00
Rationalize
This commit is contained in:
parent
91cd92e2b9
commit
d92022a5e9
2 changed files with 0 additions and 8 deletions
|
@ -69,9 +69,6 @@ const CrossfireSensor & getCrossfireSensor(uint8_t id, uint8_t subId)
|
|||
|
||||
void processCrossfireTelemetryValue(uint8_t index, int32_t value)
|
||||
{
|
||||
if (!TELEMETRY_STREAMING())
|
||||
return;
|
||||
|
||||
const CrossfireSensor & sensor = crossfireSensors[index];
|
||||
setTelemetryValue(PROTOCOL_TELEMETRY_CROSSFIRE, sensor.id, 0, sensor.subId, value, sensor.unit, sensor.precision);
|
||||
}
|
||||
|
|
|
@ -84,18 +84,13 @@ const GhostSensor *getGhostSensor(uint8_t id)
|
|||
|
||||
void processGhostTelemetryValue(uint8_t index, int32_t value)
|
||||
{
|
||||
if (!TELEMETRY_STREAMING())
|
||||
return;
|
||||
|
||||
const GhostSensor * sensor = getGhostSensor(index);
|
||||
setTelemetryValue(PROTOCOL_TELEMETRY_GHOST, sensor->id, 0, 0, value, sensor->unit, sensor->precision);
|
||||
}
|
||||
|
||||
void processGhostTelemetryValueString(const GhostSensor * sensor, const char * str)
|
||||
{
|
||||
if (TELEMETRY_STREAMING()) {
|
||||
setTelemetryText(PROTOCOL_TELEMETRY_GHOST, sensor->id, 0, 0, str);
|
||||
}
|
||||
}
|
||||
|
||||
bool checkGhostTelemetryFrameCRC()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue