X-Git-Url: https://git.ao2.it/SaveMySugar/python3-savemysugar.git/blobdiff_plain/88fce7811221c360966eb3af691a719930a2514d..cb1b733eef72caa3bb4d11364662fb0a068e49e7:/src/savemysugar/Modem.py?ds=inline diff --git a/src/savemysugar/Modem.py b/src/savemysugar/Modem.py index e510382..073b742 100755 --- a/src/savemysugar/Modem.py +++ b/src/savemysugar/Modem.py @@ -99,7 +99,7 @@ class Modem(object): resultlist = [] line = "" - while 1: + while True: data = self.serial.read(1) if len(data): line += data.decode('UTF-8') @@ -123,7 +123,7 @@ class Modem(object): line = "" def get_response_loop(self): - while 1: + while True: self.get_response() def register_callback(self, response, callback_func):