File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ void COMMAND::execute_command(int cmd,String cmd_params)
130
130
131
131
void COMMAND::check_command (String buffer)
132
132
{
133
- String ESP_Command;
134
133
static bool bfileslist=false ;
135
134
static uint32_t start_list=0 ;
136
135
if (!bfileslist) {
@@ -141,7 +140,6 @@ void COMMAND::check_command(String buffer)
141
140
bfileslist=true ;
142
141
web_interface->fileslist .clear ();
143
142
}
144
- int ESPpos = buffer.indexOf (" [ESP" );
145
143
int Tpos = buffer.indexOf (" T:" );
146
144
int Xpos = buffer.indexOf (" X:" );
147
145
int Ypos = buffer.indexOf (" Y:" );
@@ -151,6 +149,9 @@ void COMMAND::check_command(String buffer)
151
149
int Errorpos= buffer.indexOf (" Error:" );
152
150
int Infopos= buffer.indexOf (" Info:" );
153
151
int Statuspos= buffer.indexOf (" Status:" );
152
+ #ifdef SERIAL_COMMAND_FEATURE
153
+ String ESP_Command;
154
+ int ESPpos = buffer.indexOf (" [ESP" );
154
155
if (ESPpos>-1 ) {
155
156
// is there the second part?
156
157
int ESPpos2 = buffer.indexOf (" ]" ,ESPpos);
@@ -169,6 +170,7 @@ void COMMAND::check_command(String buffer)
169
170
// if not is not a valid [ESPXXX] command
170
171
}
171
172
}
173
+ #endif
172
174
// check for temperature
173
175
if (Tpos>-1 ) {
174
176
// look for valid temperature answer
Original file line number Diff line number Diff line change 35
35
// WEB_UPDATE_FEATURE: allow to flash fw using web UI
36
36
#define WEB_UPDATE_FEATURE
37
37
38
+ // SERIAL_COMMAND_FEATURE: allow to send command by serial
39
+ #define SERIAL_COMMAND_FEATURE
40
+
38
41
#ifndef CONFIG_h
39
42
#define CONFIG_h
40
43
You can’t perform that action at this time.
0 commit comments