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);
|
fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0);
|
||||||
#endif
|
#endif
|
||||||
} else if (config == SWITCH_TOGGLE) {
|
} else if (config == SWITCH_TOGGLE) {
|
||||||
|
setFSLogicalState(swIndex, 0);
|
||||||
g_model.cfsSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
|
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);
|
fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0);
|
||||||
#endif
|
#endif
|
||||||
} else if (config == SWITCH_TOGGLE) {
|
} else if (config == SWITCH_TOGGLE) {
|
||||||
|
setFSLogicalState(swIndex, 0);
|
||||||
g_eeGeneral.switchSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
|
g_eeGeneral.switchSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user