Enforce LinuxCNC WASM XYZAC command authority
This commit is contained in:
@@ -63,6 +63,9 @@ int main(void) {
|
||||
assert(sim_io_set_estop(&io, 0) == SIM_IO_OK);
|
||||
recover_status = sim_io_recover(&io);
|
||||
assert(recover_status == SIM_IO_OK && io.state.ready == 1 && io.state.recovery_epoch == 1);
|
||||
assert(sim_io_set_power(&io, 0) == SIM_IO_OK && io.state.ready == 0);
|
||||
assert(sim_io_spindle_command(&io, 0, 100.0, 1) == SIM_IO_ERR_NOT_READY);
|
||||
assert(sim_io_set_power(&io, 1) == SIM_IO_OK && io.state.ready == 1 && io.state.recovery_epoch == 2);
|
||||
|
||||
assert(sim_io_tool_set_fault(&io, 1, 42) == SIM_IO_OK);
|
||||
fault_clear_status = sim_io_tool_clear_fault(&io);
|
||||
|
||||
Reference in New Issue
Block a user