Skip to content

Commit

Permalink
Update syncwebserver.cpp
Browse files Browse the repository at this point in the history
fix hard coded web error code
  • Loading branch information
luc-github committed Sep 3, 2019
1 parent 67be0d0 commit 46f2d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp3d/syncwebserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void pushError(int code, const char * st, bool web_error = 500, uint16_t timeout
if (web_error != 0) {
if (web_interface) {
if (web_interface->web_server.client().available() > 0) {
web_interface->web_server.send (500, "text/xml", st);
web_interface->web_server.send (web_error, "text/xml", st);
}
}
}
Expand Down

0 comments on commit 46f2d27

Please sign in to comment.