Call the add instead of make function for the Eurotherm 2000 wrapper
This commit is contained in:
@ -7,6 +7,6 @@ driver eurotherm_m2000 = {
|
|||||||
add_args = 'id datype dev_id tol'
|
add_args = 'id datype dev_id tol'
|
||||||
make_args = 'id datype dev_id tol'
|
make_args = 'id datype dev_id tol'
|
||||||
code mkDriver = {%%
|
code mkDriver = {%%
|
||||||
mk_sct_eurotherm_et2000 sct_controller environment $name $dev_id $tol $id $datype
|
add_eurotherm_2000 $name $ip_address $tcp_port $dev_id $tol $id $datype
|
||||||
%%}
|
%%}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ proc ::scobj::eurotherm_m2000::mkDriver { sct_controller name device_class simul
|
|||||||
hsetprop ${scobj_hpath} data true
|
hsetprop ${scobj_hpath} data true
|
||||||
hsetprop ${scobj_hpath} debug_threshold 5
|
hsetprop ${scobj_hpath} debug_threshold 5
|
||||||
# mkDriver hook code starts
|
# mkDriver hook code starts
|
||||||
mk_sct_eurotherm_et2000 sct_controller environment $name $dev_id $tol $id $datype
|
add_eurotherm_2000 $name $ip_address $tcp_port $dev_id $tol $id $datype
|
||||||
# mkDriver hook code ends
|
# mkDriver hook code ends
|
||||||
} catch_message ]
|
} catch_message ]
|
||||||
handle_exception ${catch_status} ${catch_message}
|
handle_exception ${catch_status} ${catch_message}
|
||||||
|
Reference in New Issue
Block a user