diff --git a/.env b/.env index d6a25a9..e9789b7 100644 --- a/.env +++ b/.env @@ -1,5 +1,11 @@ +# Serial device SERIAL_DEV="/dev/cu.usbserial-A700e0gN" #SERIAL_DEV="/dev/ttyUSB0" -SERIAL_SPEED = 9600 -#SERIAL_SPEED = 19200 -#SERIAL_SPEED = 115200 + +# Serial baud rate +SERIAL_SPEED=9600 +#SERIAL_SPEED=19200 +#SERIAL_SPEED=115200 + +# FIFO filename +FIFO="/tmp/mapid" diff --git a/fifo_bridge.py b/fifo_bridge.py index c78780d..7bb3703 100755 --- a/fifo_bridge.py +++ b/fifo_bridge.py @@ -7,7 +7,8 @@ import mapid from serial.serialutil import SerialException -FIFO = "/tmp/mapid" +mapid.load_dotenv() +FIFO = return os.environ.get("FIFO") def main():