[SKY9X / 9XR-PRO] A couple of UI bugfixes
This commit is contained in:
@@ -227,7 +227,7 @@ void menuModelLogicalSwitchOne(event_t event)
|
||||
|
||||
void onLogicalSwitchesMenu(const char *result)
|
||||
{
|
||||
int8_t sub = menuVerticalPosition;
|
||||
int8_t sub = menuVerticalPosition - HEADER_LINE;
|
||||
LogicalSwitchData * cs = lswAddress(sub);
|
||||
|
||||
if (result == STR_EDIT) {
|
||||
|
||||
@@ -147,7 +147,13 @@ bool isSourceAvailable(int source)
|
||||
if (source>=MIXSRC_FIRST_POT && source<=MIXSRC_LAST_POT) {
|
||||
return IS_POT_SLIDER_AVAILABLE(POT1+source-MIXSRC_FIRST_POT);
|
||||
}
|
||||
|
||||
|
||||
#if defined(PCBSKY9X) && defined(REVX)
|
||||
if (source == MIXSRC_REa) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(PCBX10)
|
||||
if ((source>=MIXSRC_S3 && source<=MIXSRC_S4) || (source>=MIXSRC_MOUSE1 && source<=MIXSRC_MOUSE2))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user