jungfrau normal/low is not toggled like the others in register

This commit is contained in:
maliakal_d 2021-10-21 14:54:57 +02:00
parent 333a23c7e2
commit 4b7d73a4ee

View File

@ -2341,12 +2341,8 @@ 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
regval ^= BIT32_MASK;
#endif
int low = ((regval & CONFIG_V11_STATUS_CRRNT_SRC_LOW_MSK) >>
CONFIG_V11_STATUS_CRRNT_SRC_LOW_OFST); CONFIG_V11_STATUS_CRRNT_SRC_LOW_OFST);
return (low == 0 ? 1 : 0); return (low == 0 ? 1 : 0);
} }