Fix SettingChimes cbOption array size

There are 3 options, but the array-size is set to 2. This leads to
memory corruption in the initialization of the SettingChimes screen when
assigning the third option object pointer.

Found in https://github.com/InfiniTimeOrg/InfiniSim/issues/11
This commit is contained in:
Reinhold Gschweicher 2022-03-08 23:10:06 +01:00
parent 7e0b053b38
commit f47b04ffd0

View File

@ -20,7 +20,7 @@ namespace Pinetime {
private: private:
Controllers::Settings& settingsController; Controllers::Settings& settingsController;
uint8_t optionsTotal; uint8_t optionsTotal;
lv_obj_t* cbOption[2]; lv_obj_t* cbOption[3];
}; };
} }
} }