Fix color lcd conversions

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:01 +01:00
parent 4c8db58166
commit fb4f555442
5 changed files with 24 additions and 3 deletions
@@ -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