Compilation fix

This commit is contained in:
Bertrand Songis
2020-10-03 11:42:23 +02:00
parent a07fb2bb5a
commit 41bb035ce5
3 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -763,9 +763,9 @@ bool TelemetrySensor::isSameInstance(TelemetryProtocol protocol, uint8_t instanc
return true;
#else
if (((this->instance ^ instance) & 0x9F) == 0 && (this->instance >> 5) != TELEMETRY_ENDPOINT_SPORT && (instance >> 5) != TELEMETRY_ENDPOINT_SPORT) {
this->instance = instance; // update the instance in case we had telemetry switching
return true;
}
this->instance = instance; // update the instance in case we had telemetry switching
return true;
}
#endif
}