From 535151418020324275ca5a09771579ef05c84fb4 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sat, 14 Jun 2014 00:04:44 +0200 Subject: [PATCH] Using enume instead of numeric constants --- companion/src/eeprominterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/eeprominterface.h b/companion/src/eeprominterface.h index 2b01f34cd..1bd81276f 100644 --- a/companion/src/eeprominterface.h +++ b/companion/src/eeprominterface.h @@ -372,7 +372,7 @@ class RawSource { bool isTimeBased() const { - return (type==SOURCE_TYPE_TELEMETRY && (index==1 || index==2 || index==3)); + return (type==SOURCE_TYPE_TELEMETRY && (index==TELEMETRY_SOURCE_TX_TIME || index==TELEMETRY_SOURCE_TIMER1 || index==TELEMETRY_SOURCE_TIMER2)); } RawSourceType type;