1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

#2810 - Other possibility (no EEPROM change, discover button added)

This commit is contained in:
Bertrand Songis 2015-09-05 13:34:10 +02:00
parent b54123f8a3
commit ffd49691f5
21 changed files with 59 additions and 55 deletions

View file

@ -1,6 +1,7 @@
#include "../opentx.h"
TelemetryItem telemetryItems[MAX_SENSORS];
uint8_t allowNewSensors;
void TelemetryItem::gpsReceived()
{
@ -495,7 +496,7 @@ void setTelemetryValue(TelemetryProtocol protocol, uint16_t id, uint8_t instance
}
}
if (available || g_model.rejectNewSensors) {
if (available || !allowNewSensors) {
return;
}