Merge the enums TelemetryProtocol and TelemetryProtocols (#6676)
This commit is contained in:
@@ -379,7 +379,7 @@ PACK(struct TelemetrySensor {
|
||||
int32_t getPrecDivisor() const;
|
||||
bool isSameInstance(TelemetryProtocol protocol, uint8_t instance)
|
||||
{
|
||||
if (protocol == TELEM_PROTO_FRSKY_SPORT) {
|
||||
if (protocol == PROTOCOL_TELEMETRY_FRSKY_SPORT) {
|
||||
if (((this->instance ^ instance) & 0x9F) == 0) {
|
||||
this->instance = instance; // update the instance in case we had telemetry switching
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user