Browse Source

merge

english-french
Votre Nom 6 years ago
parent
commit
992f88ef1f
  1. 4
      printer.copy.py

4
printer.py → printer.copy.py

@ -46,7 +46,7 @@ def insert_linebreaks(string, linelength):
def printNow(query, results, results_count):
if connected == True:
printerpath = '/dev/usb/lp1'
printerpath = '/dev/usb/lp0'
stdout = open(printerpath, 'w')
#print('printingNow')
print(escpos['reset'], file=stdout, flush=True)
@ -130,4 +130,4 @@ def printNow(query, results, results_count):
# query = 'noise'
# results, _, _ = readings.request_results(query)
# pprint(results)
# printNow(query, results, 0)
# printNow(query, results, 0)
Loading…
Cancel
Save