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

fix: timeout datatype in haltError #690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: timeout datatype in haltError #690

wants to merge 1 commit into from

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Jan 31, 2025

Spotted while testing the DS18b20 (which has been fixed upstream)

@tyeth tyeth marked this pull request as ready for review January 31, 2025 15:45
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 Reviewed, have some questions

@@ -2504,9 +2504,9 @@ void Wippersnapper::runNetFSM() {
void Wippersnapper::haltError(String error, ws_led_status_t ledStatusColor,
uint8_t seconds_until_reboot) {
Copy link
Member

Choose a reason for hiding this comment

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

Should seconds_until_reboot also be uint8_t?

@@ -2504,9 +2504,9 @@ void Wippersnapper::runNetFSM() {
void Wippersnapper::haltError(String error, ws_led_status_t ledStatusColor,
uint8_t seconds_until_reboot) {
#ifdef ARDUINO_ARCH_ESP8266
uint8_t wdt_timeout_ms = 3200;
uint16_t wdt_timeout_ms = 3200;
Copy link
Member

Choose a reason for hiding this comment

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

The function signature of enableWDTV2(int timeoutMS), which takes in this wdt_timeout_ms value is int not uint. Why are you changing it to uint16_t?

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