Replies: 7 comments 2 replies
-
Sorry, this looks like it got lost in the holiday weekend noise. I think this would be fine to add to the |
Beta Was this translation helpful? Give feedback.
-
Earle, I'll write the code, create an associated enum, and issue a pull request for It might take a week or two, as I'm in the middle of something that needed this particular functionality - so it's not fully baked yet! Thanks for the @kendo55 reference, there's an additional code line there that helps unpick the different flavours of wdt resets. BTW, I'll add the currently unidentifiable (eg sleep) causes to the enum for forward compatibility, and make a note in the doco entry. |
Beta Was this translation helpful? Give feedback.
-
Here's the final code and a test harness. Currently there are four discernable reset causes.
I'll write up some doco and submit a PR. Richard rp2040.getResetReason( ):
test harness:
|
Beta Was this translation helpful? Give feedback.
-
OK, will do. R |
Beta Was this translation helpful? Give feedback.
-
Hi @palmerr23: Are you still planning to submit that PR? :) If I can help, just let me know. :) |
Beta Was this translation helpful? Give feedback.
-
I've been working on other stuff. I'll get back to it shortly. |
Beta Was this translation helpful? Give feedback.
-
Beautiful! Thank you. |
Beta Was this translation helpful? Give feedback.
-
Earle,
I have some code that can identify several sources of restart.
Is it worth adding to the RP2040 helper class, or will I just turn it into a little library?
Richard
Beta Was this translation helpful? Give feedback.
All reactions