resultlist = []
line = ""
- while 1:
+ while True:
data = self.serial.read(1)
if len(data):
line += data.decode('UTF-8')
line = ""
def get_response_loop(self):
- while 1:
+ while True:
self.get_response()
def register_callback(self, response, callback_func):