mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 16:27:13 +02:00
created AD9252 for old gotthard modules in use, it runs in both roi and non roi for old and new modules, data needs to be checked by Jiaguo to confirm some parts of the code that has FIXME to be checked later
This commit is contained in:
@ -2151,7 +2151,14 @@ int write_adc_register(int file_des) {
|
||||
#ifndef VIRTUAL
|
||||
// only set
|
||||
if (Server_VerifyLock() == OK)
|
||||
setAdc(addr, val);
|
||||
#ifdef JUNGFRAUD
|
||||
setAdc9257(addr, val);
|
||||
#elif GOTTHARDD
|
||||
if (getBoardRevision() == 1)
|
||||
setAdc9252(addr, val);
|
||||
else
|
||||
setAdc9257(addr, val);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
return Server_SendResult(file_des, INT32, UPDATE, NULL, 0);
|
||||
|
Reference in New Issue
Block a user