From de575757e4cb4a30ace97c8fe12c4dff4b6aa7dc Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Fri, 28 Feb 2014 13:31:45 +1100 Subject: [PATCH] Implement "@@NOSEND@@" in generated drivers --- site_ansto/instrument/util/gen_sct.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 8f748c28..53896877 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -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)