Fixed function name collision

This commit is contained in:
Jake Hillion 2020-04-28 13:55:26 +01:00
parent 8b89bdeee6
commit 34286c4877

View File

@ -33,14 +33,14 @@ def prepare_grid(grid):
out += 'q'
return out
def serial():
def serial_func():
with serial.Serial('/dev/ttyACM0', 9600, timeout=1) as ser:
with lock:
if data != '':
serial.write(bytes(data, 'ascii'))
data = ''
serial_thread = threading.Thread(target=serial)
serial_thread = threading.Thread(target=serial_func)
serial_thread.start()
if __name__ == '__main__':