mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
show fpga temp in developer tab in gui, virtual servers just show warning if no temperature file in /tmp to read (dont throw exception) (#573)
This commit is contained in:
@ -707,6 +707,10 @@ int readADCFromFile(char *fname, int *value) {
|
||||
// open file
|
||||
FILE *fd = fopen(fname, "r");
|
||||
if (fd == NULL) {
|
||||
#ifdef VIRTUAL
|
||||
LOG(logWARNING, ("Could not open file for reading [%s]\n", fname));
|
||||
return OK;
|
||||
#endif
|
||||
LOG(logERROR, ("Could not open file for reading [%s]\n", fname));
|
||||
return FAIL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user