|
|
@ -56,18 +56,18 @@ void minkill(const bool steppers_off=false); |
|
|
|
|
|
|
|
// Global State of the firmware
|
|
|
|
enum MarlinState : uint8_t { |
|
|
|
MF_INITIALIZING = 0, |
|
|
|
MF_RUNNING = _BV(0), |
|
|
|
MF_PAUSED = _BV(1), |
|
|
|
MF_WAITING = _BV(2), |
|
|
|
MF_STOPPED = _BV(3), |
|
|
|
MF_SD_COMPLETE = _BV(4), |
|
|
|
MF_KILLED = _BV(7) |
|
|
|
MF_INITIALIZING = 0, |
|
|
|
MF_STOPPED, |
|
|
|
MF_KILLED, |
|
|
|
MF_RUNNING, |
|
|
|
MF_SD_COMPLETE, |
|
|
|
MF_PAUSED, |
|
|
|
MF_WAITING, |
|
|
|
}; |
|
|
|
|
|
|
|
extern MarlinState marlin_state; |
|
|
|
inline bool IsRunning() { return marlin_state == MF_RUNNING; } |
|
|
|
inline bool IsStopped() { return marlin_state != MF_RUNNING; } |
|
|
|
inline bool IsRunning() { return marlin_state >= MF_RUNNING; } |
|
|
|
inline bool IsStopped() { return marlin_state == MF_STOPPED; } |
|
|
|
|
|
|
|
bool printingIsActive(); |
|
|
|
bool printingIsPaused(); |
|
|
|