need to specify the id of the data_type for main_plc

This commit is contained in:
Patrick McDonagh
2016-06-06 20:50:00 -05:00
parent b750edc4bd
commit bf90060f97

View File

@@ -250,7 +250,7 @@ def main():
print("Unable to read tags... Restarting.")
main()
status = Status('run_status', 'Pump.Run_Status', 0, 'STRING', 0, 3600, mapFn=maps['statusMap'], ip_address=main_plc['address'], device_type=device_types[main_plc['device_type']])
status = Status('run_status', 'Pump.Run_Status', 0, 'STRING', 0, 3600, mapFn=maps['statusMap'], ip_address=main_plc['address'], device_type=device_types[main_plc['device_type']['id']])
read_tapers = False
already_gauged_off = False
already_entered_well_test = False