mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
jungfrau normal/low is not toggled like the others in register
This commit is contained in:
parent
333a23c7e2
commit
4b7d73a4ee
@ -2341,12 +2341,8 @@ int getFixCurrentSource() {
|
||||
|
||||
int getNormalCurrentSource() {
|
||||
if (getChipVersion() == 11) {
|
||||
// TODO FIRMWARE FIX TOGGLING
|
||||
int regval = bus_r(CONFIG_V11_STATUS_REG);
|
||||
#ifndef VIRTUAL
|
||||
regval ^= BIT32_MASK;
|
||||
#endif
|
||||
int low = ((regval & CONFIG_V11_STATUS_CRRNT_SRC_LOW_MSK) >>
|
||||
int regval = ((bus_r(CONFIG_V11_STATUS_REG) &
|
||||
CONFIG_V11_STATUS_CRRNT_SRC_LOW_MSK) >>
|
||||
CONFIG_V11_STATUS_CRRNT_SRC_LOW_OFST);
|
||||
return (low == 0 ? 1 : 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user