1
0
Эх сурвалжийг харах

Set config.yaml as active config after xmodem upload

Send $Config/Filename=config.yaml before restarting to ensure
FluidNC loads the uploaded config on boot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tuanchris 4 сар өмнө
parent
commit
1e13548e4f
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      flash-fluidnc.sh

+ 3 - 1
flash-fluidnc.sh

@@ -332,8 +332,10 @@ try:
     else:
         print("CONFIG_UPLOAD_FAIL")
 
-    # Send restart command to apply new config
+    # Set this config as the active one and restart to apply
     time.sleep(1)
+    ser.write(b"$Config/Filename=config.yaml\n")
+    time.sleep(0.5)
     ser.write(b"$Bye\n")
     ser.close()