Merge pull request #74 from timwoj/main
Use the correct object for PinAlarm and TouchAlarm
This commit is contained in:
commit
499526b4a1
1 changed files with 2 additions and 2 deletions
|
|
@ -373,7 +373,7 @@ class PortalBase:
|
|||
|
||||
"""
|
||||
if self._alarm:
|
||||
return self._alarm.time.PinAlarm(pin, value, edge, pull)
|
||||
return self._alarm.pin.PinAlarm(pin, value, edge, pull)
|
||||
raise NotImplementedError(
|
||||
"Alarms not supported. Make sure you have the latest CircuitPython."
|
||||
)
|
||||
|
|
@ -385,7 +385,7 @@ class PortalBase:
|
|||
:param microcontroller.Pin pin: The trigger pin.
|
||||
"""
|
||||
if self._alarm:
|
||||
return self._alarm.time.TouchAlarm(pin)
|
||||
return self._alarm.touch.TouchAlarm(pin)
|
||||
raise NotImplementedError(
|
||||
"Alarms not supported. Make sure you have the latest CircuitPython."
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue