Exemplo n.º 1
0
// Initialization
void Options_Initialize(void)
{
	// TODO: Clear out this initialization from options to the correct places.
	rgain = 0.5;					//temp location, move to sequencer

	 //Load from EEPROM if valid:
	if (Options_HaveValidEEPROMData()) {
		Options_ReadFromEEPROM();
	}
	else {
		Options_ResetToDefaults();
		Options_WriteToEEPROM();
	}

	// Initialize the multiplier to the radio:
	assert(s_optionsData[OPTION_SI570_MULT].CurrentValue == 2 ||
			s_optionsData[OPTION_SI570_MULT].CurrentValue == 4);
	FrequencyManager_SetFreqMultiplier(s_optionsData[OPTION_SI570_MULT].CurrentValue);

}
Exemplo n.º 2
0
void Screen_Done() {

	Options_WriteToEEPROM();
	Screen_ShowMainScreen();
	Screen_SetScreenMode(MAIN);
}