FIFO name now declared in dotenv
This commit is contained in:
parent
991c053977
commit
c03d2e8fae
2 changed files with 11 additions and 4 deletions
12
.env
12
.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"
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue