made "Timer"-Feature disabled by define

This commit is contained in:
2023-03-02 17:40:25 +01:00
parent f02a53e161
commit cb3d49ad13
3 changed files with 11 additions and 3 deletions

View File

@@ -16,7 +16,9 @@
typedef enum SpeedSource_e
{
#ifdef FEATURE_ENABLE_TIMER
SOURCE_TIME,
#endif
SOURCE_IMPULSE,
#ifdef FEATURE_ENABLE_GPS
SOURCE_GPS,
@@ -27,7 +29,9 @@ typedef enum SpeedSource_e
} SpeedSource_t;
const char SpeedSourceString[][8] = {
#ifdef FEATURE_ENABLE_TIMER
"Timer",
#endif
"Impuls",
#ifdef FEATURE_ENABLE_GPS
"GPS",