fix(gx12): custom function switch LED state may be incorrect (#6763)
This commit is contained in:
@@ -718,6 +718,7 @@ static void menuModelCFSOne(event_t event)
|
||||
fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0);
|
||||
#endif
|
||||
} else if (config == SWITCH_TOGGLE) {
|
||||
setFSLogicalState(swIndex, 0);
|
||||
g_model.cfsSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,6 +198,7 @@ static void menuRadioCFSOne(event_t event)
|
||||
fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0);
|
||||
#endif
|
||||
} else if (config == SWITCH_TOGGLE) {
|
||||
setFSLogicalState(swIndex, 0);
|
||||
g_eeGeneral.switchSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user