SICS-467 Catch the bm COUNTSTART and COUNTEND events to set the feedback

status even if the counter is started via "bm count" or stopped by an
INT1712.

r3541 | ffr | 2012-05-03 17:28:34 +1000 (Thu, 03 May 2012) | 4 lines
This commit is contained in:
Ferdi Franceschini
2012-05-03 17:28:34 +10:00
committed by Douglas Clowes
parent eb0a758a72
commit a5d64c28ab

View File

@@ -142,11 +142,12 @@ namespace eval ::monitor {
bm setmode $mode
bm count $preset
::monitor::count -set feedback counts [SplitReply [bm getcounts]];
::monitor::count -set feedback status IDLE
}
::monitor::count -addfb int counts text status
::monitor::count -set feedback status IDLE
}
scriptcallback connect bm COUNTSTART "::monitor::count -set feedback status BUSY"
scriptcallback connect bm COUNTEND "::monitor::count -set feedback status IDLE"
################################################################################
# Generate the following commands,