Add silent web command

do not wait answer if not necessary
This commit is contained in:
Luc 2016-12-05 11:22:14 +01:00
parent 29e835d101
commit 6b21de310e
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,7 @@
//Serial rx buffer size is 256 but can be extended
#define SERIAL_RX_BUFFER_SIZE 512
//DEBUG Flag do not do this when connected to printer !!!
//DEBUG Flag do not do this when connected to printer unless you know what you are doing!!!
//#define DEBUG_ESP3D
//#define DEBUG_OUTPUT_SPIFFS
//#define DEBUG_OUTPUT_SD
@ -151,7 +151,7 @@ extern "C" {
}
#include "wifi.h"
//version and sources location
#define FW_VERSION "0.9.75"
#define FW_VERSION "0.9.76"
#define REPOSITORY "https://github.com/luc-github/ESP3D"
typedef enum {

View File

@ -387,7 +387,8 @@ var Efeedrate=$E_FEEDRATE$;
function Sendcommand(commandtxt, showresult=false){
var xmlhttp = new XMLHttpRequest();
var url = "/command?plain="+encodeURIComponent(commandtxt);;
var url = "/command?plain="+encodeURIComponent(commandtxt);
if (!showresult)url = "/command_silent?plain="+encodeURIComponent(commandtxt);
if (showresult){
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status === 200) {