diff options
Diffstat (limited to 'instr-daemon.c')
-rw-r--r-- | instr-daemon.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/instr-daemon.c b/instr-daemon.c index 9ac77f4..0dbee09 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -321,14 +321,17 @@ static gboolean periodic_poll (void) Menu_Check_Buttons (); // FIXME - gpib input - should have it's own thread? -// GPIB_check_for_device_clear_signal(); -// if (GPIB_check_for_messages(globals.Registers.gpib_buffer)) { -// if (GPIB_handle_new_input(globals.Registers.gpib_buffer)) { - // FIXME check_for_ctrl_mode_changes(); /* update rem/loc settings */ -// Parser_main(globals.Registers.gpib_buffer, 0, NULL, NULL); -// } -// } -// GPIB_check_for_device_clear_signal(); + // + // FIXME - comment out everything up to "return TRUE" if this section + // is crashing due to non-functional bus + GPIB_check_for_device_clear_signal(); + if (GPIB_check_for_messages(globals.Registers.gpib_buffer)) { + if (GPIB_handle_new_input(globals.Registers.gpib_buffer)) { + // FIXME check_for_ctrl_mode_changes(); /* update rem/loc settings */ + Parser_main(globals.Registers.gpib_buffer, 0, NULL, NULL); + } + } + GPIB_check_for_device_clear_signal(); return TRUE; |