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,13 +2341,9 @@ int getFixCurrentSource() {
|
|||||||
|
|
||||||
int getNormalCurrentSource() {
|
int getNormalCurrentSource() {
|
||||||
if (getChipVersion() == 11) {
|
if (getChipVersion() == 11) {
|
||||||
// TODO FIRMWARE FIX TOGGLING
|
int regval = ((bus_r(CONFIG_V11_STATUS_REG) &
|
||||||
int regval = bus_r(CONFIG_V11_STATUS_REG);
|
CONFIG_V11_STATUS_CRRNT_SRC_LOW_MSK) >>
|
||||||
#ifndef VIRTUAL
|
CONFIG_V11_STATUS_CRRNT_SRC_LOW_OFST);
|
||||||
regval ^= BIT32_MASK;
|
|
||||||
#endif
|
|
||||||
int low = ((regval & CONFIG_V11_STATUS_CRRNT_SRC_LOW_MSK) >>
|
|
||||||
CONFIG_V11_STATUS_CRRNT_SRC_LOW_OFST);
|
|
||||||
return (low == 0 ? 1 : 0);
|
return (low == 0 ? 1 : 0);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user