Skip to content

Commit

Permalink
Merge pull request #61 from makermelissa/main
Browse files Browse the repository at this point in the history
Make WiFi enabled settable
  • Loading branch information
makermelissa authored Apr 28, 2021
2 parents 36b4921 + c44deb9 commit 2db4215
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adafruit_magtag/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ def __init__(
@property
def enabled(self):
"""
Return whether the WiFi is enabled
Get or Set whether the WiFi is enabled
"""
return self._wifi.enabled

@enabled.setter
def enabled(self, value):
self._wifi.enabled = bool(value)

0 comments on commit 2db4215

Please sign in to comment.