mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
It was possible to reset Timer3 in custom functions even if Timer3
unavailable
This commit is contained in:
parent
d0bee7d666
commit
ef21053b3d
5 changed files with 24 additions and 11 deletions
|
@ -480,12 +480,6 @@ int lastUsedTelemetryIndex()
|
|||
return -1;
|
||||
}
|
||||
|
||||
bool isSensorAvailableInResetSpecialFunction(int index)
|
||||
{
|
||||
TelemetrySensor & telemetrySensor = g_model.telemetrySensors[index-FUNC_RESET_PARAM_FIRST_TELEM];
|
||||
return telemetrySensor.isAvailable();
|
||||
}
|
||||
|
||||
void setTelemetryValue(TelemetryProtocol protocol, uint16_t id, uint8_t instance, int32_t value, uint32_t unit, uint32_t prec)
|
||||
{
|
||||
for (int index=0; index<MAX_SENSORS; index++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue