From cc2479fe1f83623f0a4a9c928b0c05ae102f5e16 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Oct 2020 11:23:09 +0100 Subject: Hardening against unrecognized and multiple Keycodes at once --- iot_barcode_device_handler | 1 + 1 file changed, 1 insertion(+) (limited to 'iot_barcode_device_handler') diff --git a/iot_barcode_device_handler b/iot_barcode_device_handler index 5c05aab..ef40d3e 100755 --- a/iot_barcode_device_handler +++ b/iot_barcode_device_handler @@ -30,6 +30,7 @@ def main(): if eventdata.keystate: with open(fifo_path, "w") as fifo: fifo.write(eventdata.keycode) + fifo.write("\n") fifo.flush() except KeyboardInterrupt: -- cgit v1.2.3-70-g09d2