|
@@ -159,10 +159,11 @@ class EnginesController(PinAPIBase):
|
|
|
def make_engine(self,*args):
|
|
|
return digilib.pin.PCEngine(*args)
|
|
|
async def turn(self,args=[],command=None,respond=None):
|
|
|
- if len(direction) != 1:
|
|
|
+ if len(args) != 1:
|
|
|
respond("one missing argument: direction")
|
|
|
return
|
|
|
- lpin.debug(threading.current_thread())
|
|
|
+ [direction] = args
|
|
|
+ # lpin.debug(threading.current_thread())
|
|
|
# with self ad
|
|
|
lpin.info("turning {}".format(direction))
|
|
|
right_state = self.engine_right.is_on
|
|
@@ -200,7 +201,7 @@ class LED(DigitalPin):
|
|
|
if len(args) != 1:
|
|
|
respond("one missing argument: state")
|
|
|
return
|
|
|
- state = *args
|
|
|
+ [state] = args
|
|
|
self.output(state)
|
|
|
|
|
|
|