Add more WD feed and flags check to save loop time

remove PURE_SERIAL define as useless now
This commit is contained in:
Luc
2016-12-04 22:06:16 +01:00
parent 99578de542
commit 1269e9b09a
3 changed files with 18 additions and 19 deletions

View File

@@ -493,6 +493,14 @@ bool COMMAND::check_command(String buffer, tpipe output, bool handlelockserial)
bool is_temp = false;
//feed the WD for safety
delay(0);
#if ((FIRMWARE_TARGET == REPETIER) || (FIRMWARE_TARGET == REPETIER4DV))
//save time no need to continue
if ((buffer.indexOf("busy:") > -1) || (buffer.startsWith("wait")))return false;
#endif
//because some answer start by ok ...
#if (FIRMWARE_TARGET != SMOOTHIEWARE)
if (buffer.startsWith("ok"))return false;
#endif
//if direct access to SDCard no need to handle the M20 command answer
#ifndef DIRECT_SDCARD_FEATURE
static bool bfileslist=false;