Fix %s bug in simulated property

This commit is contained in:
Douglas Clowes
2014-10-22 16:02:17 +11:00
parent 000e799800
commit ff260fd737

View File

@ -1448,10 +1448,10 @@ def put_var(MyDriver, MyGroup, MyVar):
# Generate <dev>_<group...>_<name> 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: