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:
parent
b54123f8a3
commit
ffd49691f5
21 changed files with 59 additions and 55 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue