diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-12-07 10:04:02 -0500 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-12-07 10:04:02 -0500 |
commit | 3fe4c0eead043da3eeb178a854bd9ca81a282807 (patch) | |
tree | 908d0128e102aa7a8b1b84734e081afca0df6389 | |
parent | 0140955d5e80254a03c9b3ce8b3046b162f65f2f (diff) |
fix invalid lock names
-rw-r--r-- | globals.c | 2 | ||||
-rw-r--r-- | globals.h | 2 | ||||
-rw-r--r-- | instr-daemon.c | 8 |
3 files changed, 6 insertions, 6 deletions
@@ -15,7 +15,7 @@ GlobalStruct globals = { .Registers.gpib_buffer[0] = 0, - .4882Locks.locked_network_server = NO_SERVER_LOCKED + .VxiLocks.locked_network_server = NO_SERVER_LOCKED }; @@ -799,7 +799,7 @@ typedef struct { MenuStatusStruct MenuStatus; RemoteStruct Remote; HWDetectStruct HWDetect; - LockStruct 4882Locks; + LockStruct VxiLocks; } GlobalStruct; diff --git a/instr-daemon.c b/instr-daemon.c index 2097a6c..73a847e 100644 --- a/instr-daemon.c +++ b/instr-daemon.c @@ -406,11 +406,11 @@ static gboolean periodic_poll (void) // don't check GPIB interface if a VXI interface is locked, // or is currently handling a command - if ((globals.4882Locks.locked_network_server == NO_SERVER_LOCKED) && - (globals.4882Locks.command_in_progress == FALSE)) { + if ((globals.VxiLocks.locked_network_server == NO_SERVER_LOCKED) && + (globals.VxiLocks.command_in_progress == FALSE)) { // tell VXI servers that the 4882 subsystem is busy - globals.4882Locks.command_in_progress = TRUE; + globals.VxiLocks.command_in_progress = TRUE; GPIB_check_for_device_clear_signal(); if (GPIB_check_for_messages(globals.Registers.gpib_buffer)) { @@ -421,7 +421,7 @@ static gboolean periodic_poll (void) GPIB_check_for_device_clear_signal(); // tell VXI servers that the 4882 subsystem is avilable again - globals.4882Locks.command_in_progress = FALSE; + globals.VxiLocks.command_in_progress = FALSE; } Update_Main_Menu_If_Visible(); |