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

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

No files matched your search

+1 -1
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