Fix %s bug in simulated property
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user