X-Git-Url: https://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/3e54c9fcdf7f11c1711b5daa2d8f748c7da7056f..95bb7f0464d8eabdb7ee315b0e3dd3f67eab60dd:/src/libs/Kernel.h diff --git a/src/libs/Kernel.h b/src/libs/Kernel.h index 82538dd8..4a2feb7c 100644 --- a/src/libs/Kernel.h +++ b/src/libs/Kernel.h @@ -9,6 +9,8 @@ #define KERNEL_H #define THEKERNEL Kernel::instance +#define THECONVEYOR THEKERNEL->conveyor +#define THEROBOT THEKERNEL->robot #include "Module.h" #include @@ -24,7 +26,6 @@ class SerialConsole; class StreamOutputPool; class GcodeDispatch; class Robot; -class Stepper; class Planner; class StepTicker; class Adc; @@ -42,12 +43,13 @@ class Kernel { void register_for_event(_EVENT_ENUM id_event, Module *module); void call_event(_EVENT_ENUM id_event, void * argument= nullptr); - bool kernel_has_event(_EVENT_ENUM id_event, Module *mod); + bool kernel_has_event(_EVENT_ENUM id_event, Module *module); void unregister_for_event(_EVENT_ENUM id_event, Module *module); bool is_using_leds() const { return use_leds; } bool is_halted() const { return halted; } bool is_grbl_mode() const { return grbl_mode; } + bool is_ok_per_line() const { return ok_per_line; } void set_feed_hold(bool f) { feed_hold= f; } bool get_feed_hold() const { return feed_hold; } @@ -59,7 +61,6 @@ class Kernel { StreamOutputPool* streams; GcodeDispatch* gcode_dispatch; Robot* robot; - Stepper* stepper; Planner* planner; Config* config; Conveyor* conveyor; @@ -82,6 +83,7 @@ class Kernel { bool halted:1; bool grbl_mode:1; bool feed_hold:1; + bool ok_per_line:1; }; };