RCT: improve battery control (#26358)

This commit is contained in:
Maschga 2026-01-03 12:47:55 +01:00 • committed by GitHub
parent 87346351d8
commit 3f632d9096
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,7 @@ func NewRCT(ctx context.Context, uri, usage string, batterySocLimits batterySocL
}
// check for normal operating mode
if batStatus != 0 && batStatus != 1032 {
if batStatus != 0 && batStatus != 1032 && batStatus != 2048 {
return fmt.Errorf("invalid battery operating mode: %d", batStatus)
}
}