Ejemplo 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);

}
Ejemplo n.º 2
0
static void defaults_Click(GL_PageControls_TypeDef* pThis)
{
	displayDefaultsFeedback();
	Options_ResetToDefaults();
}