1
0
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:
Mitch Bradley
2021-12-12 15:04:05 -10:00
parent 575fca784c
commit a4a6e59e52
2 changed files with 7 additions and 3 deletions

View File

@@ -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;

View File

@@ -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")