Skip to content

Commit d39ea07

Browse files
committed
Add [ESP290] command per @josedpedroso
fix #364
1 parent f48ecfd commit d39ea07

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

docs/Commands.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ if RAW=YES do not set pinmode just read value
7373
* Output to oled line 4
7474
[ESP214]<Text>
7575

76+
* Delay command
77+
[ESP290]<delay in ms>[pwd=<user password>]
78+
7679
* Give EEPROM Version detected
7780
[ESP300]
7881

esp3d/command.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,12 +705,31 @@ bool COMMAND::execute_command (int cmd, String cmd_params, tpipe output, level_a
705705
}
706706
break;
707707
#endif
708+
//Command delay
709+
case 290: {
710+
parameter = get_param (cmd_params, "", true);
711+
#ifdef AUTHENTICATION_FEATURE
712+
if (auth_type == LEVEL_GUEST) {
713+
ESPCOM::println (INCORRECT_CMD_MSG, output, espresponse);
714+
response = false;
715+
} else
716+
#endif
717+
{
718+
if (parameter.length() != 0) {
719+
ESPCOM::println ("Pause", output, espresponse);
720+
CONFIG::wait(parameter.toInt());
721+
}
722+
ESPCOM::println (OK_CMD_MSG, output, espresponse);
723+
}
724+
}
725+
break;
708726
//display ESP3D EEPROM version detected
709727
case 300: {
710728
uint8_t v = CONFIG::get_EEPROM_version();
711729
ESPCOM::println (String(v).c_str(), output, espresponse);
712730
}
713731
break;
732+
714733
//Get full EEPROM settings content
715734
//[ESP400]
716735
case 400: {

esp3d/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020

2121
//version and sources location
22-
#define FW_VERSION "2.1.0.b34"
22+
#define FW_VERSION "2.1.0.b35"
2323
#define REPOSITORY "https://github.com/luc-github/ESP3D"
2424

2525
//Customize ESP3D ////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)