Call the add instead of make function for the Eurotherm 2000 wrapper

This commit is contained in:
Douglas Clowes
2014-11-06 12:34:45 +11:00
parent 1f6d28637d
commit 0010cef179
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,6 @@ driver eurotherm_m2000 = {
add_args = 'id datype dev_id tol'
make_args = 'id datype dev_id tol'
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
%%}
}

View File

@ -42,7 +42,7 @@ proc ::scobj::eurotherm_m2000::mkDriver { sct_controller name device_class simul
hsetprop ${scobj_hpath} data true
hsetprop ${scobj_hpath} debug_threshold 5
# 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
} catch_message ]
handle_exception ${catch_status} ${catch_message}