Inline manage_inactivity, tweak autoreport_paused
This commit is contained in:
@@ -351,6 +351,18 @@ public:
|
||||
process_subcommands_now_P(G28_STR);
|
||||
}
|
||||
|
||||
#if HAS_AUTO_REPORTING || ENABLED(HOST_KEEPALIVE_FEATURE)
|
||||
static bool autoreport_paused;
|
||||
static inline bool set_autoreport_paused(const bool p) {
|
||||
const bool was = autoreport_paused;
|
||||
autoreport_paused = p;
|
||||
return was;
|
||||
}
|
||||
#else
|
||||
static constexpr bool autoreport_paused = false;
|
||||
static inline bool set_autoreport_paused(const bool) { return false; }
|
||||
#endif
|
||||
|
||||
#if ENABLED(HOST_KEEPALIVE_FEATURE)
|
||||
/**
|
||||
* States for managing Marlin and host communication
|
||||
|
||||
Reference in New Issue
Block a user