Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Misc fixes. #46

Merged
merged 4 commits into from
Apr 10, 2021
Merged

Misc fixes. #46

merged 4 commits into from
Apr 10, 2021

Conversation

caternuson
Copy link
Contributor

A couple of fixes here.

Here's an example WDT reset just for records:
Screenshot from 2021-04-09 13-49-52

while (digitalRead(dtrPin) == HIGH)
;
while (digitalRead(dtrPin) == HIGH) {
delay(0);
Copy link
Member

Choose a reason for hiding this comment

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

can you make these delay(1) or yield()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, can bump up value. Was avoiding yield() based on this comment:
#26 (comment)
Idea being that ESP8266's delay() calls yield() under the hood. Hopefully using delay() is more universal.

Copy link
Member

Choose a reason for hiding this comment

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

yield is most like delay(0), delay(1) of course delays. ill say i use yield() in libraries and never heard a complaint

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it may be old lore? all the BSPs have caught up now? yield makes more sense than delay, was just wanting to avoid preprocessor logic if possible.

Copy link
Member

Choose a reason for hiding this comment

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

yeah all BSPs have caught up, that was 4 years ago :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

works4me

@caternuson
Copy link
Contributor Author

ESP8266 testing for the record. Previously it would WDT timeout on the bitmap print.

esp8266_test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants