mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 15:29:04 +08:00
Add silent web command
do not wait answer if not necessary
This commit is contained in:
parent
29e835d101
commit
6b21de310e
@ -91,7 +91,7 @@
|
|||||||
//Serial rx buffer size is 256 but can be extended
|
//Serial rx buffer size is 256 but can be extended
|
||||||
#define SERIAL_RX_BUFFER_SIZE 512
|
#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_ESP3D
|
||||||
//#define DEBUG_OUTPUT_SPIFFS
|
//#define DEBUG_OUTPUT_SPIFFS
|
||||||
//#define DEBUG_OUTPUT_SD
|
//#define DEBUG_OUTPUT_SD
|
||||||
@ -151,7 +151,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
#include "wifi.h"
|
#include "wifi.h"
|
||||||
//version and sources location
|
//version and sources location
|
||||||
#define FW_VERSION "0.9.75"
|
#define FW_VERSION "0.9.76"
|
||||||
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
#define REPOSITORY "https://github.com/luc-github/ESP3D"
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -387,7 +387,8 @@ var Efeedrate=$E_FEEDRATE$;
|
|||||||
|
|
||||||
function Sendcommand(commandtxt, showresult=false){
|
function Sendcommand(commandtxt, showresult=false){
|
||||||
var xmlhttp = new XMLHttpRequest();
|
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){
|
if (showresult){
|
||||||
xmlhttp.onreadystatechange = function() {
|
xmlhttp.onreadystatechange = function() {
|
||||||
if (xmlhttp.readyState == 4 && xmlhttp.status === 200) {
|
if (xmlhttp.readyState == 4 && xmlhttp.status === 200) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user