diff --git a/Grbl_Esp32/src/WebUI/TelnetServer.h b/Grbl_Esp32/src/WebUI/TelnetServer.h index 83af4e89..2d2d206c 100644 --- a/Grbl_Esp32/src/WebUI/TelnetServer.h +++ b/Grbl_Esp32/src/WebUI/TelnetServer.h @@ -28,7 +28,13 @@ class WiFiClient; namespace WebUI { class Telnet_Server { //how many clients should be able to telnet to this ESP32 +#ifdef NATIVE + // For some reason, the system crashes when calling destructors + // on the _telnetClients[] array. + static const int MAX_TLNT_CLIENTS = 0; +#else static const int MAX_TLNT_CLIENTS = 1; +#endif static const int TELNETRXBUFFERSIZE = 1200; static const int FLUSHTIMEOUT = 500; diff --git a/converter.py b/converter.py index c7eaf4df..2d5c5a67 100644 --- a/converter.py +++ b/converter.py @@ -34,9 +34,7 @@ def convertMachine(baseName, verbose=True, extraArgs=None): out_filename = "yaml/" + Path(baseName).stem + ".yaml" proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1) print("FluidNC Configuration written to", out_filename) - print("ret ", proc.returncode) - # return proc.returncode - return 0 + return proc.returncode else: out_filename = "yaml/" + Path(baseName).stem + ".ERROR" open(out_filename, "w")