2024-08-03 -

This commit is contained in:
Adolfo Delorenzo 2024-08-03 19:16:20 -06:00
parent 74a208a647
commit 11c0197601

View File

@ -31,7 +31,7 @@ modbus_device = '/dev/modbus'
mb_address = 1
sensy_boi = minimalmodbus.Instrument(modbus_device, mb_address)
sensy_boi.serial.baudrate = 115200
sensy_boi.serial.baudrate = 9600
sensy_boi.serial.bytesize = 8
sensy_boi.serial.parity = minimalmodbus.serial.PARITY_NONE
sensy_boi.serial.stopbits = 1
@ -175,7 +175,7 @@ def reinitialize_devices():
sensy_boi.clear_buffers_before_each_transaction = True
sensy_boi.close_port_after_each_call = True
gps_ser = serial.Serial(gps_device, 115200)
gps_ser = serial.Serial(gps_device, 9600)
gps_ser.reset_input_buffer()
initialize_gps(gps_ser)
@ -184,7 +184,7 @@ def reinitialize_devices():
logging.error(f"Failed to reinitialize devices: {str(e)}")
# Initialize GPS
gps_ser = serial.Serial(gps_device, 115200)
gps_ser = serial.Serial(gps_device, 9600)
gps_ser.reset_input_buffer()
initialize_gps(gps_ser)