diff --git a/Firmware/cmdqueue.cpp b/Firmware/cmdqueue.cpp index 9c822dab..a400a4e1 100755 --- a/Firmware/cmdqueue.cpp +++ b/Firmware/cmdqueue.cpp @@ -371,12 +371,6 @@ void repeatcommand_front() cmdbuffer_front_already_processed = true; } -bool is_buffer_empty() -{ - if (buflen == 0) return true; - else return false; -} - void proc_commands() { if (buflen) { diff --git a/Firmware/cmdqueue.h b/Firmware/cmdqueue.h index e85f2704..bb9e174d 100644 --- a/Firmware/cmdqueue.h +++ b/Firmware/cmdqueue.h @@ -69,7 +69,6 @@ extern bool cmd_buffer_empty(); extern void enquecommand(const char *cmd, bool from_progmem = false); extern void enquecommand_front(const char *cmd, bool from_progmem = false); extern void repeatcommand_front(); -extern bool is_buffer_empty(); extern void get_command(); extern uint16_t cmdqueue_calc_sd_length(); diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 5b7b8f59..cbf27af8 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -8689,7 +8689,7 @@ static void lcd_connect_printer() { void lcd_ping() { //chceck if printer is connected to monitoring when in farm mode if (farm_mode) { - bool empty = is_buffer_empty(); + bool empty = cmd_buffer_empty(); if ((_millis() - PingTime) * 0.001 > (empty ? PING_TIME : PING_TIME_LONG)) { //if commands buffer is empty use shorter time period //if there are comamnds in buffer, some long gcodes can delay execution of ping command //therefore longer period is used