summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 21:58:37 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 21:58:37 -0500
commit78c1a09a33ce7bf596fbdfad445fe6acec47c6ec (patch)
tree0a9784d9d098cae88c6cbac127f1c3b5797add03
parentddd8afb6558b9f759536f7b709c5fc7ea96f1599 (diff)
add support for current monitor checking
-rw-r--r--instr-daemon.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/instr-daemon.c b/instr-daemon.c
index 6bcf5d5..cd92d26 100644
--- a/instr-daemon.c
+++ b/instr-daemon.c
@@ -254,7 +254,7 @@ int main(int argc, char **argv)
// FIXME - need auto-timer output-off somewhere - launch event from set_output?
- // FIXME - need main loops, checks monitors too
+ // FIXME - when do update_ vars get reset
//register stdin channel
stdinChannel = g_io_channel_unix_new(0);
@@ -340,6 +340,13 @@ static gboolean periodic_poll (void)
Menu_Check_Buttons ();
+ int i;
+ for (i=0; i<max_channels; i++) {
+ if (globals.Flash.monitor_enabled[i]) {
+ I2C_Check_Monitors();
+ }
+ }
+
GPIB_check_for_device_clear_signal();
if (GPIB_check_for_messages(globals.Registers.gpib_buffer)) {
if (GPIB_handle_new_input(globals.Registers.gpib_buffer)) {