diff --git a/components/actor/Pololu1376.py b/components/actor/Pololu1376.py index ca52ad1..dc11089 100644 --- a/components/actor/Pololu1376.py +++ b/components/actor/Pololu1376.py @@ -1,8 +1,8 @@ - import time import serial import enum + class Varid(enum.Enum): STATUS = 0, STATUS_ERROR_OCCURED = 1, @@ -113,6 +113,7 @@ def print_vars(drv): print ("DIAGNOSTIC_SPEED : {:04X}".format(int(drv.get_variable(Varid.DIAGNOSTIC_SPEED.value[0])))) print ("DIAGNOSTIC_TEMPERATURE : {:04X}".format(int(drv.get_variable(Varid.DIAGNOSTIC_TEMPERATURE.value[0])))) + if __name__ == '__main__': ser = serial.Serial("/dev/ttyACM0", 115200)