mirror of
https://github.com/grblHAL/core.git
synced 2026-09-27 19:13:58 +08:00
Added helper code for plugins claiming auxiliary ports to make plugin coding easier and behaviour consistent.
Some minor bug fixes such as incorrect error code returned for unknown $-commands and temporary incorrect position reporting on in-flight G92 offset changes.
This commit is contained in:
@@ -465,9 +465,9 @@ ISR_CODE void ISR_FUNC(stepper_driver_interrupt_handler)(void)
|
||||
while(st.exec_block->output_commands) {
|
||||
output_command_t *cmd = st.exec_block->output_commands;
|
||||
if(cmd->is_digital)
|
||||
hal.port.digital_out(cmd->port, cmd->value != 0.0f);
|
||||
ioport_digital_out(cmd->port, cmd->value != 0.0f);
|
||||
else
|
||||
hal.port.analog_out(cmd->port, cmd->value);
|
||||
ioport_analog_out(cmd->port, cmd->value);
|
||||
st.exec_block->output_commands = cmd->next;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user