#include "hardware.h"
#include "report.h"
#include "state.h"
+#include "exec.h"
#include "util.h"
#include <string.h>
}
+static stat_t _dwell_exec() {
+ exec_set_cb(0);
+ return STAT_OK;
+}
+
+
unsigned command_dwell_size() {return sizeof(float);}
-void command_dwell_exec(float *seconds) {st_prep_dwell(*seconds);}
+
+
+void command_dwell_exec(float *seconds) {
+ st_prep_dwell(*seconds);
+ exec_set_cb(_dwell_exec); // Necessary evil
+}
// TODO
VAR(echo, ec, bool, 0, 1, 1, "Enable or disable echo")
VAR(estop, es, bool, 0, 1, 1, "Emergency stop")
VAR(estop_reason, er, pstr, 0, 0, 1, "Emergency stop reason")
-VAR(state, x, pstr, 0, 0, 1, "Machine state")
+VAR(state, xx, pstr, 0, 0, 1, "Machine state")
VAR(hold_reason, pr, pstr, 0, 0, 1, "Machine pause reason")
VAR(underflow, un, u32, 0, 0, 1, "Stepper underflow count")
+VAR(dwell_time, dt, f32, 0, 0, 1, "Dwell timer")