Changed serial port

This commit is contained in:
N07070 2020-01-14 17:03:46 +01:00
parent 4525acfb7d
commit 8bb674e745

View File

@ -94,7 +94,7 @@ def print_image():
def print_text(): def print_text():
if session.get('logged_in'): if session.get('logged_in'):
if len(request.form['message']) < 200: if len(request.form['message']) < 200:
printer = Adafruit_Thermal('/dev/serial0', 19200, timeout=5) printer = Adafruit_Thermal('/dev/ttyAMA0', 19200, timeout=5)
printer.begin() printer.begin()
printer.justify('L') printer.justify('L')
printer.println((request.form['message']).encode()) printer.println((request.form['message']).encode())