Reformat leftovers
This commit is contained in:
parent
65bf4e4182
commit
7a837c09a1
4 changed files with 9 additions and 9 deletions
|
|
@ -49,9 +49,9 @@
|
||||||
unsigned char eeprom_get_char(unsigned int addr) {
|
unsigned char eeprom_get_char(unsigned int addr) {
|
||||||
do {
|
do {
|
||||||
} while (EECR & (1 << EEPE)); // Wait for completion of previous write.
|
} while (EECR & (1 << EEPE)); // Wait for completion of previous write.
|
||||||
EEAR = addr; // Set EEPROM address register.
|
EEAR = addr; // Set EEPROM address register.
|
||||||
EECR = (1 << EERE); // Start EEPROM read operation.
|
EECR = (1 << EERE); // Start EEPROM read operation.
|
||||||
return EEDR; // Return the byte read from EEPROM.
|
return EEDR; // Return the byte read from EEPROM.
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief Write byte to EEPROM.
|
/*! \brief Write byte to EEPROM.
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ uint8_t gc_execute_line(char *line) {
|
||||||
word_bit = MODAL_GROUP_G4;
|
word_bit = MODAL_GROUP_G4;
|
||||||
if ((mantissa != 10) || (int_value == 90)) {
|
if ((mantissa != 10) || (int_value == 90)) {
|
||||||
FAIL(STATUS_GCODE_UNSUPPORTED_COMMAND);
|
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.
|
mantissa = 0; // Set to zero to indicate valid non-integer G command.
|
||||||
// Otherwise, arc IJK incremental mode is default. G91.1 does nothing.
|
// 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;
|
gc_block.modal.tool_length = TOOL_LENGTH_OFFSET_ENABLE_DYNAMIC;
|
||||||
} else {
|
} else {
|
||||||
FAIL(STATUS_GCODE_UNSUPPORTED_COMMAND);
|
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.
|
mantissa = 0; // Set to zero to indicate valid non-integer G command.
|
||||||
break;
|
break;
|
||||||
case 54:
|
case 54:
|
||||||
|
|
@ -654,7 +654,7 @@ uint8_t gc_execute_line(char *line) {
|
||||||
}; // [No axis words]
|
}; // [No axis words]
|
||||||
if (bit_isfalse(value_words, ((1 << WORD_P) | (1 << WORD_L)))) {
|
if (bit_isfalse(value_words, ((1 << WORD_P) | (1 << WORD_L)))) {
|
||||||
FAIL(STATUS_GCODE_VALUE_WORD_MISSING);
|
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.
|
coord_select = trunc(gc_block.values.p); // Convert p value to int.
|
||||||
if (coord_select > N_COORDINATE_SYSTEM) {
|
if (coord_select > N_COORDINATE_SYSTEM) {
|
||||||
FAIL(STATUS_GCODE_UNSUPPORTED_COORD_SYS);
|
FAIL(STATUS_GCODE_UNSUPPORTED_COORD_SYS);
|
||||||
|
|
|
||||||
|
|
@ -694,7 +694,7 @@ static void protocol_exec_rt_suspend() {
|
||||||
st_go_idle(); // Disable steppers
|
st_go_idle(); // Disable steppers
|
||||||
while (!(sys.abort)) {
|
while (!(sys.abort)) {
|
||||||
protocol_exec_rt_system();
|
protocol_exec_rt_system();
|
||||||
} // Do nothing until reset.
|
} // Do nothing until reset.
|
||||||
return; // Abort received. Return to re-initialize.
|
return; // Abort received. Return to re-initialize.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ uint8_t system_execute_line(char *line) {
|
||||||
}
|
}
|
||||||
if (system_check_safety_door_ajar()) {
|
if (system_check_safety_door_ajar()) {
|
||||||
return (STATUS_CHECK_DOOR);
|
return (STATUS_CHECK_DOOR);
|
||||||
} // Block if safety door is ajar.
|
} // Block if safety door is ajar.
|
||||||
sys.state = STATE_HOMING; // Set system state variable
|
sys.state = STATE_HOMING; // Set system state variable
|
||||||
if (line[2] == 0) {
|
if (line[2] == 0) {
|
||||||
mc_homing_cycle(HOMING_CYCLE_ALL);
|
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.
|
} else { // Store startup line [IDLE Only] Prevents motion during ALARM.
|
||||||
if (sys.state != STATE_IDLE) {
|
if (sys.state != STATE_IDLE) {
|
||||||
return (STATUS_IDLE_ERROR);
|
return (STATUS_IDLE_ERROR);
|
||||||
} // Store only when idle.
|
} // Store only when idle.
|
||||||
helper_var = true; // Set helper_var to flag storing method.
|
helper_var = true; // Set helper_var to flag storing method.
|
||||||
// No break. Continues into default: to read remaining command characters.
|
// No break. Continues into default: to read remaining command characters.
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue