Beispiel #1
0
static void _hLoadModelLayout()
{
	if (KEYINIT)
		mnuMLayout.marked = Config.MixerIndex;

	if (elementIndex == 0)
	{
		if (doMenu(&mnuMLayout))
		{
			lcdClear();
			lcdSetPos(3, 18);
			lcdWriteString_P(strAreYouSure);
			writeSoftkeys(_skCANCELYES);
			elementIndex = 1;
		}
	}		
	else if (KEY4)		// YES
	{
		mixerLoadModel(mnuMLayout.marked);
		//configSave();
		loadPage(PAGE_SHOW_LAYOUT);
	}
}
Beispiel #2
0
static void _initConfig()
{
	memcpy_P(&Config, &defaultConfig, sizeof(Config));
	mixerLoadModel(Config.MixerIndex);
}