Oops. need part of settings_init().

This commit is contained in:
Todd Fleming 2017-01-09 06:38:22 -05:00
parent 3ab9e6bd6e
commit a27feeab51
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ int main(void)
isr_init(); // Set ISR priorities
delay_init(); // Setup delay timer
serial_init(); // Setup serial baud rate and interrupts
//settings_init(); // Load Grbl settings from EEPROM
settings_init(); // Load Grbl settings from EEPROM
current_init(); // Configure stepper driver current
stepper_init(); // Configure stepper pins and interrupt timers
system_init(); // Configure pinout pins and pin-change interrupt

View File

@ -309,9 +309,9 @@ uint8_t settings_store_global_setting(uint8_t parameter, float value) {
// Initialize the config subsystem
void settings_init() {
if(!read_global_settings()) {
report_status_message(STATUS_SETTING_READ_FAIL);
//report_status_message(STATUS_SETTING_READ_FAIL);
settings_restore(SETTINGS_RESTORE_ALL); // Force restore all EEPROM data.
report_grbl_settings();
//report_grbl_settings();
}
}