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

RP2040 WDT=8.3secs - enable after wifi connect #670

Merged
merged 3 commits into from
Dec 21, 2024

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Dec 17, 2024

Split out from wifi sorting pr, needed ideally (works without but wifi multi times out at 8seconds) before release of firmware version for #664

@tyeth tyeth force-pushed the WDT-RP2040-enable-after-wifi-connect branch 2 times, most recently from b093b99 to 39231b3 Compare December 17, 2024 23:26
@tyeth tyeth force-pushed the WDT-RP2040-enable-after-wifi-connect branch from 39231b3 to 2475f33 Compare December 17, 2024 23:36
@brentru brentru self-requested a review December 19, 2024 16:32
Copy link
Member

@brentru brentru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small feedback, looks good. Please ping me when addressed.

platformio.ini Show resolved Hide resolved
@@ -2748,8 +2748,10 @@ void Wippersnapper::connect() {
// Dump device info to the serial monitor
printDeviceInfo();

// enable global WDT
// enable global WDT
#ifndef ARDUINO_ARCH_RP2040
WS.enableWDT(WS_WDT_TIMEOUT);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving this guard into the enableWDT() call, so we aren't ifndef''ing each time we call enableWDT()`

src/Wippersnapper.h Outdated Show resolved Hide resolved
@tyeth tyeth requested a review from brentru December 20, 2024 18:49
@tyeth
Copy link
Contributor Author

tyeth commented Dec 20, 2024

@brentru this one too please (switched enableWDT to after wifi connect)

Copy link
Member

@brentru brentru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tyeth LGTM

@tyeth tyeth merged commit 8b62a09 into adafruit:main Dec 21, 2024
39 checks passed
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

Successfully merging this pull request may close these issues.

2 participants