summaryrefslogtreecommitdiff
path: root/instr-daemon.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:41:29 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 19:41:29 -0500
commitf9b971979596256c2e18fd58d920d60997675cbf (patch)
treef52ce05bfa8a257a44614b32d5763ccacfcd25c3 /instr-daemon.c
parente8758b4e4c23a951df4e18c914982306b6b0f461 (diff)
enable gpib bus
Diffstat (limited to 'instr-daemon.c')
-rw-r--r--instr-daemon.c19
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;