Cosmetics
This commit is contained in:
@@ -409,6 +409,7 @@ void onSensorMenu(const char * result)
|
|||||||
|
|
||||||
void menuModelTelemetryFrsky(event_t event)
|
void menuModelTelemetryFrsky(event_t event)
|
||||||
{
|
{
|
||||||
|
// TODO rather an handler for this
|
||||||
if (warningResult) {
|
if (warningResult) {
|
||||||
warningResult = 0;
|
warningResult = 0;
|
||||||
for (int i=0; i<MAX_TELEMETRY_SENSORS; i++) {
|
for (int i=0; i<MAX_TELEMETRY_SENSORS; i++) {
|
||||||
|
|||||||
@@ -485,8 +485,7 @@ bool isValidIdAndInstance(uint16_t id, uint8_t instance)
|
|||||||
|
|
||||||
for (int index=0; index<MAX_TELEMETRY_SENSORS; index++) {
|
for (int index=0; index<MAX_TELEMETRY_SENSORS; index++) {
|
||||||
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[index];
|
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[index];
|
||||||
if (telemetrySensor.type == TELEM_TYPE_CUSTOM && telemetrySensor.id == id)
|
if (telemetrySensor.type == TELEM_TYPE_CUSTOM && telemetrySensor.id == id) {
|
||||||
{
|
|
||||||
sensorFound = true;
|
sensorFound = true;
|
||||||
if (telemetrySensor.instance == instance || g_model.ignoreSensorIds)
|
if (telemetrySensor.instance == instance || g_model.ignoreSensorIds)
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user