void ParamBox::OnParamLoad(wxCommandEvent& event) { bool compmode = false; if(event.GetId() == ID_Compare) { compmode = true; mainwin->diagbox->Write(boxname + " param compare\n"); } ParamLoad("", compmode); }
//***************************************************************************** // // This function initializes the parameter block. If there is a parameter // block stored in flash, then those values will be used. Otherwise, the // default parameter values will be used. // //***************************************************************************** void ParamInit(void) { // // Initialize the flash parameter block driver. // FlashPBInit(FLASH_PB_START, FLASH_PB_END, FLASH_PB_SIZE); // // First, load the parameter block with the default values. // ParamLoadDefault(); // // Then, if available, load the latest non-volatile set of values. // ParamLoad(); }
void ParamBox::OnDefault(wxCommandEvent& event) { ParamLoad("default"); if(autorun) OnRun(event); }