The serial port was closing before the write buffer was flushed, so $Config/Filename and $Bye commands never reached the board. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@@ -335,8 +335,11 @@ try:
# 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.flush()
+ time.sleep(1)
ser.write(b"$Bye\n")
ser.close()
except Exception as e: