Skip to content

stabilize ESP8266 watchdog #61

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

Merged
merged 3 commits into from
Dec 18, 2017

Conversation

universam1
Copy link
Contributor

solve the watchdog timeout issue on ESP8266
fixes #38

Copy link
Owner

@sandeepmistry sandeepmistry left a comment

Choose a reason for hiding this comment

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

@universam1 thanks for submitting!

See comment above.

src/LoRa.cpp Outdated
@@ -144,7 +144,11 @@ int LoRaClass::endPacket()
writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_TX);

// wait for TX done
while((readRegister(REG_IRQ_FLAGS) & IRQ_TX_DONE_MASK) == 0);
while((readRegister(REG_IRQ_FLAGS) & IRQ_TX_DONE_MASK) == 0)
#ifdef ESP8266
Copy link
Owner

Choose a reason for hiding this comment

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

I think we should remove the #ifdef and call yield on all architectures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure if this is working on all platform, thats why I set the guard. If you think so, I prefere!

@universam1
Copy link
Contributor Author

request applied!

@sandeepmistry sandeepmistry merged commit 79a33ce into sandeepmistry:master Dec 18, 2017
@sandeepmistry
Copy link
Owner

@universam1 thanks!

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.

ESP32/ESP8266 Issues
2 participants