Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling when not connected (Flash Red LED by default) #2583

Open
gfwilliams opened this issue Dec 7, 2024 · 1 comment
Open

Error handling when not connected (Flash Red LED by default) #2583

gfwilliams opened this issue Dec 7, 2024 · 1 comment

Comments

@gfwilliams
Copy link
Member

Add flags (E.setFlags) for:

  • Flashing Red LED when there's an uncaught error (default on devices with physical LED)
  • Writing the Error to Storage (not default)

Which should help catch errors that occur when nothing is connected to the device

@gfwilliams
Copy link
Member Author

... maybe store the error in RAM by default (it can be deleted if more memory is needed like we do for history) and set something in E.getErrorFlags. Then when the Web IDE connects it can check the error flags and output the exception that occurred when nothing was connected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant