chore(cpn): set default for CFS to mimic 6POS (#6607)
This commit is contained in:
@@ -223,14 +223,18 @@ void ModelData::setDefaultFunctionSwitches(int functionSwitchCount)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (int i = 0; i < functionSwitchCount; i++) {
|
for (int i = 0; i < functionSwitchCount; i++) {
|
||||||
customSwitches[i].type = Board::SWITCH_GLOBAL;
|
customSwitches[i].type = Board::SWITCH_2POS;
|
||||||
customSwitches[i].group = 0;
|
customSwitches[i].group = 1;
|
||||||
customSwitches[i].start = ModelData::FUNC_SWITCH_START_PREVIOUS;
|
if (i == 0)
|
||||||
|
customSwitches[i].start = ModelData::FUNC_SWITCH_START_ON;
|
||||||
|
else
|
||||||
|
customSwitches[i].start = ModelData::FUNC_SWITCH_START_OFF;
|
||||||
customSwitches[i].state = 0;
|
customSwitches[i].state = 0;
|
||||||
customSwitches[i].name[0] = 0;
|
customSwitches[i].name[0] = 0;
|
||||||
customSwitches[i].onColor.setColor(255, 255, 255);
|
customSwitches[i].onColor.setColor(255, 255, 255);
|
||||||
customSwitches[i].offColor.setColor(0, 0, 0);
|
customSwitches[i].offColor.setColor(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
cfsGroupOn[1] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelData::setDefaultValues(unsigned int id, const GeneralSettings & settings)
|
void ModelData::setDefaultValues(unsigned int id, const GeneralSettings & settings)
|
||||||
|
|||||||
Reference in New Issue
Block a user