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

Badger 2040W: Custom WiFi status handler for #30 #31

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

Gadgetoid
Copy link
Member

No description provided.

from network_manager import NetworkManager
import WIFI_CONFIG
import uasyncio
import gc

status_handler = args.get("status_handler", self.status_handler)

if WIFI_CONFIG.COUNTRY == "":
raise RuntimeError("You must populate WIFI_CONFIG.py for networking.")
self.display.set_update_speed(2)

Choose a reason for hiding this comment

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

It would be good to remove this too, really it should have been in the function above. Its a strange side effect, connecting to wifi changes the speed the display updates at

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, I'll move it into the handler.

@Gadgetoid Gadgetoid merged commit 42746a4 into main Jul 19, 2023
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