summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-29 01:05:12 +0900
committerdaniel <danieruru@gmail.com>2013-01-29 01:05:12 +0900
commit34edd87cbc6f35d8f199e726dd00a4aa763dcbff (patch)
tree7fe268866e0508150a0f563a2f6f24da39bc2d98
parente15319368bf6d69fe84dc5afa63f740252c8dfcc (diff)
parent8152c5b83f164d4f7e265f8c1bb2d81e88a5bf97 (diff)
Merge branch 'vxi' of grenfell.avtechpulse.com:Instrument into vxi
-rw-r--r--flash.c2
-rw-r--r--globals.h2
-rw-r--r--instr-daemon.c8
-rw-r--r--libvxi11client/perlbits/VXI11-Client.t2
-rw-r--r--vxi11_server.c2
5 files changed, 9 insertions, 7 deletions
diff --git a/flash.c b/flash.c
index bdb8fb2..db5a870 100644
--- a/flash.c
+++ b/flash.c
@@ -391,7 +391,7 @@ static void initFlashValues(FlashStruct *mem)
mem->ChanKey_Burst_Count=0;
mem->ChanKey_Burst_Time=0;
- mem->network_enabled=0;
+ mem->vxi_enabled=0;
mem->self_cal=0;
mem->self_cal_interval=5;
mem->self_cal_startups=0;
diff --git a/globals.h b/globals.h
index 805e7aa..6840edb 100644
--- a/globals.h
+++ b/globals.h
@@ -435,7 +435,7 @@ typedef struct {
char ChanKey_Burst_Time; /* 224 */
- char network_enabled; /* 225 */
+ char vxi_enabled; /* 225 */
short web_session_timeout; /* 226 - timeout in seconds */
diff --git a/instr-daemon.c b/instr-daemon.c
index e1d5c8e..e110863 100644
--- a/instr-daemon.c
+++ b/instr-daemon.c
@@ -294,9 +294,11 @@ int main(int argc, char **argv)
g_timeout_add (20, (GSourceFunc) periodic_poll, NULL);
g_timeout_add (100, (GSourceFunc) finish_boot, NULL);
- GThread *vxithread =g_thread_create(vxithreadfunc, NULL,false, NULL);
- if(vxithread == NULL)
- printf("Couldn't create vxi thread\n");
+ if (globals.Flash.vxi_enabled) {
+ GThread *vxithread =g_thread_create(vxithreadfunc, NULL,false, NULL);
+ if(vxithread == NULL)
+ printf("Couldn't create vxi thread\n");
+ }
g_main_loop_run (loop);
diff --git a/libvxi11client/perlbits/VXI11-Client.t b/libvxi11client/perlbits/VXI11-Client.t
index 96d030b..695540e 100644
--- a/libvxi11client/perlbits/VXI11-Client.t
+++ b/libvxi11client/perlbits/VXI11-Client.t
@@ -18,7 +18,7 @@ BEGIN { use_ok('VXI11::Client') };
&VXI11::Client::vxi_startinterruptserver();
-my $address = "roi";
+my $address = "192.168.0.62";
my $instr = &VXI11::Client::vxi_open($address, 0);
is($instr->vxi_lock(0), 1, "Lock");
diff --git a/vxi11_server.c b/vxi11_server.c
index 3f47c07..8811514 100644
--- a/vxi11_server.c
+++ b/vxi11_server.c
@@ -333,7 +333,7 @@ device_trigger_1_svc(Device_GenericParms *argp, struct svc_req *rqstp) {
result.error = ERR_DEVICELOCKEDBYANOTHERLINK;
else {
touchlink(argp->lid);
- result.error = 0;
+ result.error = ERR_OPERATIONNOTSUPPORTED;
}
return &result;
}