Commit 2624c222 authored by Alan Mitchell's avatar Alan Mitchell

Doubled timeout ot PZEM power sensor to reduce error count.

parent fa8e82c6
......@@ -41,7 +41,7 @@ try:
# Set up the MODBUS instrument used to read the sensor
minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL=True
instr = minimalmodbus.Instrument(settings.PWR_PORT, 1) # Slave Address 1 assumed for sensor
instr.serial.timeout = 0.1
instr.serial.timeout = 0.2
instr.serial.baudrate = 9600
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment