diff --git a/docs/Commands.txt b/docs/Commands.txt index fb7265b8..1c53d525 100644 --- a/docs/Commands.txt +++ b/docs/Commands.txt @@ -73,6 +73,9 @@ if RAW=YES do not set pinmode just read value * Output to oled line 4 [ESP214] +* Delay command +[ESP290][pwd=] + * Give EEPROM Version detected [ESP300] diff --git a/esp3d/command.cpp b/esp3d/command.cpp index 34441e4e..783b0e7d 100644 --- a/esp3d/command.cpp +++ b/esp3d/command.cpp @@ -705,12 +705,31 @@ bool COMMAND::execute_command (int cmd, String cmd_params, tpipe output, level_a } break; #endif + //Command delay + case 290: { + parameter = get_param (cmd_params, "", true); +#ifdef AUTHENTICATION_FEATURE + if (auth_type == LEVEL_GUEST) { + ESPCOM::println (INCORRECT_CMD_MSG, output, espresponse); + response = false; + } else +#endif + { + if (parameter.length() != 0) { + ESPCOM::println ("Pause", output, espresponse); + CONFIG::wait(parameter.toInt()); + } + ESPCOM::println (OK_CMD_MSG, output, espresponse); + } + } + break; //display ESP3D EEPROM version detected case 300: { uint8_t v = CONFIG::get_EEPROM_version(); ESPCOM::println (String(v).c_str(), output, espresponse); } break; + //Get full EEPROM settings content //[ESP400] case 400: { diff --git a/esp3d/config.h b/esp3d/config.h index 516790c8..30c9a053 100644 --- a/esp3d/config.h +++ b/esp3d/config.h @@ -19,7 +19,7 @@ */ //version and sources location -#define FW_VERSION "2.1.0.b34" +#define FW_VERSION "2.1.0.b35" #define REPOSITORY "https://github.com/luc-github/ESP3D" //Customize ESP3D ////////////////////////////////////////////////////////////////////////