Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jan 12, 2025
1 parent f62c87b commit dc00b24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions meter/rct.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ func (m *RCT) setBatteryMode(mode api.BatteryMode) error {

data := make([]byte, 4)
binary.BigEndian.PutUint32(data, math.Float32bits(0.95))

return m.conn.Write(rct.PowerMngSocTargetSet, []byte{rct.SOCTargetExternal})
return m.conn.Write(rct.PowerMngSocTargetSet, data)

default:
return api.ErrNotAvailable
Expand Down

0 comments on commit dc00b24

Please sign in to comment.