Skip to content

Commit

Permalink
Merge pull request #3 from michaelpeterswa/more-tests-and-fixes
Browse files Browse the repository at this point in the history
Update dataQuantity for reading correct amount of holding registers
  • Loading branch information
michaelpeterswa authored Aug 13, 2023
2 parents 3054060 + bb488a9 commit 4fd81f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renogymodbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewModbusClient(logger *log.Logger, address string) (*ModbusClient, error)
func (mc *ModbusClient) ReadData() ([]byte, error) {
var (
dataStartAddress uint16 = 0x100
dataQuantity uint16 = 34
dataQuantity uint16 = 35
)

res, err := mc.readHoldingRegisters(dataStartAddress, dataQuantity)
Expand Down

0 comments on commit 4fd81f2

Please sign in to comment.