Fix config yet again

This commit is contained in:
TuxSH 2022-04-10 01:31:41 +01:00
parent 859b11a27d
commit f32f3a4854

View File

@ -866,7 +866,7 @@ void configMenu(bool oldPinStatus, u32 oldPinMode)
for(u32 i = 0; i < multiOptionsAmount; i++)
configData.multiConfig |= multiOptions[i].enabled << (i * 2);
configData.config &= ~(1 << (u32)NUMCONFIGURABLE) - 1;
configData.config &= ~((1 << (u32)NUMCONFIGURABLE) - 1);
for(u32 i = 0; i < singleOptionsAmount; i++)
configData.config |= (singleOptions[i].enabled ? 1 : 0) << i;