diff --git a/Grbl_Esp32/src/ProcessSettings.cpp b/Grbl_Esp32/src/ProcessSettings.cpp index b50e9bca..2fa15f3c 100644 --- a/Grbl_Esp32/src/ProcessSettings.cpp +++ b/Grbl_Esp32/src/ProcessSettings.cpp @@ -272,8 +272,7 @@ Error home(int cycle) { sys.state = State::Idle; // Set to IDLE when complete. st_go_idle(); // Set steppers to the settings idle state before returning. if (cycle == HOMING_CYCLE_ALL) { - char line[128]; - system_execute_startup(line); + system_execute_startup(); } } return Error::Ok; @@ -687,7 +686,7 @@ Error system_execute_line(char* line, uint8_t client, WebUI::AuthenticationLevel return system_execute_line(line, &stream, auth_level); } -void system_execute_startup(char* line) { +void system_execute_startup() { Error status_code; char gcline[256]; strncpy(gcline, startup_line_0->get(), 255); diff --git a/Grbl_Esp32/src/Protocol.cpp b/Grbl_Esp32/src/Protocol.cpp index 454ea108..c978685f 100644 --- a/Grbl_Esp32/src/Protocol.cpp +++ b/Grbl_Esp32/src/Protocol.cpp @@ -156,7 +156,7 @@ void protocol_main_loop() { protocol_execute_realtime(); // Enter safety door mode. Should return as IDLE state. } // All systems go! - system_execute_startup(line); // Execute startup script. + system_execute_startup(); // Execute startup script. } // --------------------------------------------------------------------------------- // Primary loop! Upon a system abort, this exits back to main() to reset the system. diff --git a/Grbl_Esp32/src/System.h b/Grbl_Esp32/src/System.h index 215108c1..07a104da 100644 --- a/Grbl_Esp32/src/System.h +++ b/Grbl_Esp32/src/System.h @@ -143,7 +143,7 @@ void init_output_pins(); // Renamed from system_init() due to conflict with esp void system_reset(); // Execute the startup script lines stored in non-volatile storage upon initialization -void system_execute_startup(char* line); +void system_execute_startup(); Error execute_line(char* line, uint8_t client, WebUI::AuthenticationLevel auth_level); Error system_execute_line(char* line, WebUI::ESPResponseStream*, WebUI::AuthenticationLevel); Error system_execute_line(char* line, uint8_t client, WebUI::AuthenticationLevel);