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; }
+ // void set_feed_hold(bool f) { feed_hold= f; }
+ // bool get_feed_hold() const { return feed_hold; }
std::string get_query_string();
}
if(c[i] == 'X' - 'A' + 1) { // ^X
- THEKERNEL->set_feed_hold(false); // required to free stuff up
+ //THEKERNEL->set_feed_hold(false); // required to free stuff up
halt_flag = true;
continue;
}
if(THEKERNEL->is_grbl_mode()) {
if(c[i] == '!') { // safe pause
- THEKERNEL->set_feed_hold(true);
+ //THEKERNEL->set_feed_hold(true);
continue;
}
if(c[i] == '~') { // safe resume
- THEKERNEL->set_feed_hold(false);
+ //THEKERNEL->set_feed_hold(false);
continue;
}
- if(last_char_was_dollar && (c[i] == 'X' || c[i] == 'H')) {
- // we need to do this otherwise $X/$H won't work if there was a feed hold like when stop is clicked in bCNC
- THEKERNEL->set_feed_hold(false);
- }
+ // if(last_char_was_dollar && (c[i] == 'X' || c[i] == 'H')) {
+ // // we need to do this otherwise $X/$H won't work if there was a feed hold like when stop is clicked in bCNC
+ // THEKERNEL->set_feed_hold(false);
+ // }
}
last_char_was_dollar = (c[i] == '$');
}
// if we are in feed hold we do not process anything
- if(THEKERNEL->get_feed_hold()) return;
+ //if(THEKERNEL->get_feed_hold()) return;
if (nl_in_rx) {
string received;
if (THEKERNEL->is_halted())
return "ALARM";
- if (THEPANEL->is_suspended() || THEKERNEL->get_feed_hold())
- return "Feed Hold";
+ if (THEPANEL->is_suspended() /*|| THEKERNEL->get_feed_hold()*/)
+ return "Suspended";
if (THEPANEL->is_playing())
return THEPANEL->get_playing_file();