From ff260fd737067640e8cf6fb348e768835901764e Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Wed, 22 Oct 2014 16:02:17 +1100 Subject: [PATCH] Fix %s bug in simulated property --- site_ansto/instrument/util/gen_sct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 23818420..15853d08 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -1448,10 +1448,10 @@ def put_var(MyDriver, MyGroup, MyVar): # Generate __ at runtime for driveable driveable = '${name}_' + make_path(MyVar) postfix += [' ansto_makesctdrive %s ${scobj_hpath}/%s ${scobj_hpath}/%s ${sct_controller}' % (driveable, nodename, MyVar['driveable'])] - txt += [' hsetprop ${scobj_hpath}/%s simulated false'] + txt += [' hsetprop ${scobj_hpath}/%s simulated false' % nodename] txt += [' } else {'] txt += [' %s::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for %s"' % (MyDriver['namespace'], MyDriver['name'])] - txt += [' hsetprop ${scobj_hpath}/%s simulated true'] + txt += [' hsetprop ${scobj_hpath}/%s simulated true' % nodename] txt += [' }'] if 'conditional' in MyVar: