mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-30 17:49:56 +02:00
Worked around destructor crash
This commit is contained in:
@@ -28,7 +28,13 @@ class WiFiClient;
|
|||||||
namespace WebUI {
|
namespace WebUI {
|
||||||
class Telnet_Server {
|
class Telnet_Server {
|
||||||
//how many clients should be able to telnet to this ESP32
|
//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;
|
static const int MAX_TLNT_CLIENTS = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
static const int TELNETRXBUFFERSIZE = 1200;
|
static const int TELNETRXBUFFERSIZE = 1200;
|
||||||
static const int FLUSHTIMEOUT = 500;
|
static const int FLUSHTIMEOUT = 500;
|
||||||
|
@@ -34,9 +34,7 @@ def convertMachine(baseName, verbose=True, extraArgs=None):
|
|||||||
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
|
out_filename = "yaml/" + Path(baseName).stem + ".yaml"
|
||||||
proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
|
proc = subprocess.run(cmd, env=env, stdout=open(out_filename, "w"), stderr=subprocess.STDOUT, bufsize=1)
|
||||||
print("FluidNC Configuration written to", out_filename)
|
print("FluidNC Configuration written to", out_filename)
|
||||||
print("ret ", proc.returncode)
|
return proc.returncode
|
||||||
# return proc.returncode
|
|
||||||
return 0
|
|
||||||
else:
|
else:
|
||||||
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
|
out_filename = "yaml/" + Path(baseName).stem + ".ERROR"
|
||||||
open(out_filename, "w")
|
open(out_filename, "w")
|
||||||
|
Reference in New Issue
Block a user