From 19e2f2ef60e9a4e6e44ddc9b44c67f10fa8de860 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 18 Nov 2011 17:04:58 +0000 Subject: [PATCH] gotthard: temp readable git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@54 951219d9-93cf-4727-9268-0efd64621fa3 --- slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c index b22560309..71a089ffe 100755 --- a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c +++ b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c @@ -863,7 +863,7 @@ float getTemperature(int tempSensor, int imod) #ifdef VERBOSE printf("Getting Temperature of module:%d for the %s\n",imod,cTempSensor[tempSensor]); #endif - bus_w(TEMP_SPI_IN,T1_CLK_BIT|T1_CS_BIT|T2_CLK_BIT|T2_CS_BIT);//standby + bus_w(TEMP_SPI_IN,(T1_CLK_BIT)|(T1_CS_BIT)|(T2_CLK_BIT)|(T2_CS_BIT));//standby bus_w(TEMP_SPI_IN,(T1_CLK_BIT)&~(T1_CS_BIT)|(T2_CLK_BIT));//high clk low cs for(k=0;k<2;k++){ @@ -879,7 +879,7 @@ float getTemperature(int tempSensor, int imod) } times=8; } - bus_w(TEMP_SPI_IN,T1_CLK_BIT|T1_CS_BIT|T2_CLK_BIT|T2_CS_BIT);//standby + bus_w(TEMP_SPI_IN,(T1_CLK_BIT)|(T1_CS_BIT)|(T2_CLK_BIT)|(T2_CS_BIT));//standby val=((float)tempVal)/4.0; #ifdef VERBOSE//read time from start needed??