Implement "@@NOSEND@@" in generated drivers

This commit is contained in:
Douglas Clowes
2014-02-28 13:31:45 +11:00
parent 05d25257b3
commit de575757e4

View File

@ -782,7 +782,9 @@ def put_write_function(MyDriver, func):
txt += [' }']
txt += [' }']
txt += [' debug_log 1 "%s sct send ${cmd}"' % func]
txt += [' sct send "${cmd}"']
txt += [' if {![string equal -nocase -length 10 ${cmd} "@@NOSEND@@"]} {']
txt += [' sct send "${cmd}"']
txt += [' }']
txt += [' return ${nextState}']
txt += ['}']
emit(txt)