summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-12-07 10:04:02 -0500
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-12-07 10:04:02 -0500
commit3fe4c0eead043da3eeb178a854bd9ca81a282807 (patch)
tree908d0128e102aa7a8b1b84734e081afca0df6389
parent0140955d5e80254a03c9b3ce8b3046b162f65f2f (diff)
fix invalid lock names
-rw-r--r--globals.c2
-rw-r--r--globals.h2
-rw-r--r--instr-daemon.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/globals.c b/globals.c
index 90bfb39..2b4014d 100644
--- a/globals.c
+++ b/globals.c
@@ -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
};
diff --git a/globals.h b/globals.h
index 52a3503..99b05dc 100644
--- a/globals.h
+++ b/globals.h
@@ -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();