-
Notifications
You must be signed in to change notification settings - Fork 220
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
How to override the default post_init function? #1698
Comments
I'm pretty sure you can just re-enable the watchdog in your main function. There should be an example as well. |
Won’t there be some time where its disabled then? I would prefer never to
disable it
ons 19 juni 2024 kl. 22:26 skrev Dominic Fischer ***@***.***>:
… I'm pretty sure you can just re-enable the watchdog in your main function.
There should be an example as well.
—
Reply to this email directly, view it on GitHub
<#1698 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC3FNEO5JLHYR35BEL6BIRTZIHSOPAVCNFSM6AAAAABJSP5EAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGQYTOMRYGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
We'd probably add this behind a configuration option. We don't have a complete story for this yet see #1111. |
For this sort of thing, rather than a config option, which can only be specified once per crate. This should probably be part of the entry macro, which can be specified once per application/binary (of which there could be multiple in a crate). #[entry(watchdog, psram(80))]
fn main() {
// stuff
}
Not that I think this is bad to want or something, I'm just curious what you're worried about happening between the disable and re-enable? Or is this a matter of principal? |
Im worried that I have made a bad OTA image and get stuck in it :/
ons 19 juni 2024 kl. 22:53 skrev Dominic Fischer ***@***.***>:
… For this sort of thing, rather than a config option, which can only be
specified once per crate. This should probably be part of the entry macro,
which can be specified once per application/binary (of which there could be
multiple in a crate).
#[entry(watchdog, psram(80))]fn main() {
// stuff}
I would prefer never to disable it
Not that I think this is bad to want or something, I'm just curious what
you're worried about happening between the disable and re-enable? Or is
this a matter of principal?
—
Reply to this email directly, view it on GitHub
<#1698 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC3FNELZDHY6L4GCLARGULTZIHVVJAVCNFSM6AAAAABJSP5EAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGQ2DGOBYGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
With the changes to how we initialize the hal, we can now make this a global configuration option. (Bear in mind this issue on the esp32 when implementing: #2105) |
Currently it seems the watchdogs are disabled by default in the __post_init function. Is there a possibility to override or modify this behaviour?
#763
The text was updated successfully, but these errors were encountered: