Minor comment/condition cleanup
This commit is contained in:
parent
f64d300cfd
commit
b7053156fe
3 changed files with 3 additions and 5 deletions
|
@ -271,7 +271,7 @@ inline void get_serial_commands() {
|
|||
|
||||
// If the command buffer is empty for too long,
|
||||
// send "wait" to indicate Marlin is still waiting.
|
||||
#if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0
|
||||
#if NO_TIMEOUTS > 0
|
||||
static millis_t last_command_time = 0;
|
||||
const millis_t ms = millis();
|
||||
if (commands_in_queue == 0 && !serial_data_available() && ELAPSED(ms, last_command_time + NO_TIMEOUTS)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue