ctb v_limit dac tristate (#761)

* ctb: allowing dac to tristate (-100) even if v_limit is set

* binary in

* formatting
This commit is contained in:
2023-06-15 08:42:42 +02:00
committed by GitHub
parent d032f43f11
commit a5f26252b8
3 changed files with 2 additions and 2 deletions

View File

@ -1149,7 +1149,7 @@ int checkVLimitCompliant(int mV) {
}
int checkVLimitDacCompliant(int dac) {
if (vLimit > 0) {
if (vLimit > 0 && dac != -1 && dac != LTC2620_GetPowerDownValue()) {
int mv = 0;
// could not convert
if (LTC2620_DacToVoltage(dac, &mv) == FAIL)