Fixed Python 3.5 compatibility for Zeroborg plugin
This commit is contained in:
parent
ff9e1c71a7
commit
36835a1706
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import enum
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from typing import Optional, Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
from platypush.context import get_bus
|
from platypush.context import get_bus
|
||||||
from platypush.message.event.zeroborg import ZeroborgDriveEvent, ZeroborgStopEvent
|
from platypush.message.event.zeroborg import ZeroborgDriveEvent, ZeroborgStopEvent
|
||||||
|
@ -76,7 +76,7 @@ class GpioZeroborgPlugin(Plugin):
|
||||||
|
|
||||||
self.directions = directions
|
self.directions = directions
|
||||||
self._direction = None
|
self._direction = None
|
||||||
self._drive_thread: Optional[threading.Thread] = None
|
self._drive_thread = None
|
||||||
self._motors = [0, 0, 0, 0]
|
self._motors = [0, 0, 0, 0]
|
||||||
|
|
||||||
self.zb = ZeroBorg.ZeroBorg()
|
self.zb = ZeroBorg.ZeroBorg()
|
||||||
|
|
Loading…
Reference in a new issue