FIFO name now declared in dotenv

This commit is contained in:
Malte Bublitz 2023-10-27 00:19:10 +02:00
parent 991c053977
commit c03d2e8fae
Signed by: malte70
GPG key ID: 605DA5C729F9C184
2 changed files with 11 additions and 4 deletions

6
.env
View file

@ -1,5 +1,11 @@
# Serial device
SERIAL_DEV="/dev/cu.usbserial-A700e0gN"
#SERIAL_DEV="/dev/ttyUSB0"
# Serial baud rate
SERIAL_SPEED=9600
#SERIAL_SPEED=19200
#SERIAL_SPEED=115200
# FIFO filename
FIFO="/tmp/mapid"

View file

@ -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():