mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
check for why gui doesnt show all data
This commit is contained in:
@ -1679,7 +1679,10 @@ int Feb_Control_PrintCorrectedValues(){
|
||||
|
||||
int Feb_Control_GetLeftFPGATemp(){
|
||||
unsigned int temperature=0;
|
||||
Feb_Interface_ReadRegister(Module_GetTopLeftAddress (&modules[1]),FEB_REG_STATUS, &temperature);
|
||||
if(Module_TopAddressIsValid(&modules[1]))
|
||||
Feb_Interface_ReadRegister(Module_GetTopLeftAddress (&modules[1]),FEB_REG_STATUS, &temperature);
|
||||
else
|
||||
Feb_Interface_ReadRegister(Module_GetBottomLeftAddress (&modules[1]),FEB_REG_STATUS, &temperature);
|
||||
temperature = temperature >> 16;
|
||||
//division done in client to send int over network
|
||||
return (int)temperature;
|
||||
@ -1687,7 +1690,10 @@ int Feb_Control_GetLeftFPGATemp(){
|
||||
|
||||
int Feb_Control_GetRightFPGATemp(){
|
||||
unsigned int temperature=0;
|
||||
Feb_Interface_ReadRegister(Module_GetTopRightAddress (&modules[1]),FEB_REG_STATUS, &temperature);
|
||||
if(Module_TopAddressIsValid(&modules[1]))
|
||||
Feb_Interface_ReadRegister(Module_GetTopRightAddress (&modules[1]),FEB_REG_STATUS, &temperature);
|
||||
else
|
||||
Feb_Interface_ReadRegister(Module_GetBottomRightAddress (&modules[1]),FEB_REG_STATUS, &temperature);
|
||||
temperature = temperature >> 16;
|
||||
//division done in client to send int over network
|
||||
return (int)temperature;
|
||||
|
Reference in New Issue
Block a user