From 7a837c09a170932f40ef7dae8e020bc8c131f966 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 28 Dec 2025 07:11:16 +0100 Subject: [PATCH] Reformat leftovers --- grbl/eeprom.c | 6 +++--- grbl/gcode.c | 6 +++--- grbl/protocol.c | 2 +- grbl/system.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/grbl/eeprom.c b/grbl/eeprom.c index 031cbcf..b20c8fd 100644 --- a/grbl/eeprom.c +++ b/grbl/eeprom.c @@ -49,9 +49,9 @@ unsigned char eeprom_get_char(unsigned int addr) { do { } while (EECR & (1 << EEPE)); // Wait for completion of previous write. - EEAR = addr; // Set EEPROM address register. - EECR = (1 << EERE); // Start EEPROM read operation. - return EEDR; // Return the byte read from EEPROM. + EEAR = addr; // Set EEPROM address register. + EECR = (1 << EERE); // Start EEPROM read operation. + return EEDR; // Return the byte read from EEPROM. } /*! \brief Write byte to EEPROM. diff --git a/grbl/gcode.c b/grbl/gcode.c index d90f9f5..44f2be1 100644 --- a/grbl/gcode.c +++ b/grbl/gcode.c @@ -208,7 +208,7 @@ uint8_t gc_execute_line(char *line) { word_bit = MODAL_GROUP_G4; if ((mantissa != 10) || (int_value == 90)) { FAIL(STATUS_GCODE_UNSUPPORTED_COMMAND); - } // [G90.1 not supported] + } // [G90.1 not supported] mantissa = 0; // Set to zero to indicate valid non-integer G command. // Otherwise, arc IJK incremental mode is default. G91.1 does nothing. } @@ -245,7 +245,7 @@ uint8_t gc_execute_line(char *line) { gc_block.modal.tool_length = TOOL_LENGTH_OFFSET_ENABLE_DYNAMIC; } else { FAIL(STATUS_GCODE_UNSUPPORTED_COMMAND); - } // [Unsupported G43.x command] + } // [Unsupported G43.x command] mantissa = 0; // Set to zero to indicate valid non-integer G command. break; case 54: @@ -654,7 +654,7 @@ uint8_t gc_execute_line(char *line) { }; // [No axis words] if (bit_isfalse(value_words, ((1 << WORD_P) | (1 << WORD_L)))) { FAIL(STATUS_GCODE_VALUE_WORD_MISSING); - } // [P/L word missing] + } // [P/L word missing] coord_select = trunc(gc_block.values.p); // Convert p value to int. if (coord_select > N_COORDINATE_SYSTEM) { FAIL(STATUS_GCODE_UNSUPPORTED_COORD_SYS); diff --git a/grbl/protocol.c b/grbl/protocol.c index e12ff51..8b7e78a 100644 --- a/grbl/protocol.c +++ b/grbl/protocol.c @@ -694,7 +694,7 @@ static void protocol_exec_rt_suspend() { st_go_idle(); // Disable steppers while (!(sys.abort)) { protocol_exec_rt_system(); - } // Do nothing until reset. + } // Do nothing until reset. return; // Abort received. Return to re-initialize. } diff --git a/grbl/system.c b/grbl/system.c index b006df8..13a1c71 100644 --- a/grbl/system.c +++ b/grbl/system.c @@ -200,7 +200,7 @@ uint8_t system_execute_line(char *line) { } if (system_check_safety_door_ajar()) { return (STATUS_CHECK_DOOR); - } // Block if safety door is ajar. + } // Block if safety door is ajar. sys.state = STATE_HOMING; // Set system state variable if (line[2] == 0) { mc_homing_cycle(HOMING_CYCLE_ALL); @@ -279,7 +279,7 @@ uint8_t system_execute_line(char *line) { } else { // Store startup line [IDLE Only] Prevents motion during ALARM. if (sys.state != STATE_IDLE) { return (STATUS_IDLE_ERROR); - } // Store only when idle. + } // Store only when idle. helper_var = true; // Set helper_var to flag storing method. // No break. Continues into default: to read remaining command characters. }