-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When you are running a qpyt watch command, and the device resets e.g. after an AppFota or Watchdog, we manually need to rerun the command. This has several issues:
- When (re)running
watchthe device will perform a soft reset, so loosing it's hard reset state, this can be mitigated by runningattach, not watch. - As soon as the device firmware has booted the entry point will run, so we always will miss some logs printed to repl.
Solution:
Implement a --delayed-start flag to watch that has the following implications:
- If there is no
/usr/main.pyit has no effect, as there is no automatic start script - deploy
/usr/main.pyas/usr/_main.pyto the board. This causes QuecPython not to run it automatically - If we loose serial connection, try to restablish it until success or user canceled
- If we have the serial connection reestablished:
- Manually run
/usr/_main.pywithimport example;example.run("/usr/main.py")Theexamplepackage is also used in QPYcom to execute .py files manually
Metadata
Metadata
Assignees
Labels
No labels