1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-31 01:59:54 +02:00

Eliminate unused argument to system_execute_startup.

This commit is contained in:
Mitch Bradley
2021-06-25 10:03:14 -10:00
parent 9f46d3adb4
commit c0a9819435
3 changed files with 4 additions and 5 deletions

View File

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

View File

@@ -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.

View File

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