Fix color lcd conversions
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
#define STORAGE_NUM_SLIDERS 0
|
||||
#define STORAGE_NUM_MOUSE_ANALOGS 0
|
||||
|
||||
#define NUM_POTS 2
|
||||
#define NUM_XPOTS 0
|
||||
|
||||
#elif defined(PCBHORUS)
|
||||
|
||||
#define STORAGE_NUM_SWITCHES 10
|
||||
@@ -40,6 +43,13 @@
|
||||
#define STORAGE_NUM_SLIDERS 4
|
||||
#define STORAGE_NUM_MOUSE_ANALOGS 2
|
||||
|
||||
#if defined(PCBX10)
|
||||
#define NUM_POTS 5
|
||||
#else
|
||||
#define NUM_POTS 3
|
||||
#endif
|
||||
#define NUM_XPOTS NUM_POTS
|
||||
|
||||
#elif defined(PCBTARANIS)
|
||||
|
||||
#if defined(PCBX9LITE)
|
||||
|
||||
@@ -94,6 +94,8 @@ static uint8_t select_zov(uint8_t* data, uint32_t bitoffs)
|
||||
data += bitoffs >> 3UL;
|
||||
data -= sizeof(ZoneOptionValueEnum);
|
||||
ZoneOptionValueEnum* p_zovt = (ZoneOptionValueEnum*)data;
|
||||
if (*p_zovt > ZOV_String)
|
||||
return 0;
|
||||
return *p_zovt;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user