Added sanity check to CO2 (must be more that 0 :D)

This commit is contained in:
Duke NUCem
2021-10-11 20:06:27 +02:00
parent a87afdf6fa
commit 78c8104a58
3 changed files with 19 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import minimalmodbus
import serial
slave_address = 254
instrument = minimalmodbus.Instrument('/dev/ttyUSB0', slave_address, close_port_after_each_call=True) # port name, slave address (in decimal)
instrument = minimalmodbus.Instrument('/dev/rs485', slave_address, close_port_after_each_call=True) # port name, slave address (in decimal)
instrument.serial.baudrate = 19200
instrument.serial.bytesize = 8