dyrkin / znp-go

ZigBee Network Processor (ZNP) Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SysOsalNvRead() has wrong response type

joonas-fi opened this issue · comments

func (znp *Znp) SysOsalNvRead(id uint16, offset uint8) (rsp *StatusResponse, err error) {

I believe the correct response type is SysOsalNvReadResponse:

znp-go/model.go

Line 347 in 69131cf

type SysOsalNvReadResponse struct {

The incorrect one takes into account only the status, the correct one also includes the read NVRAM content

I tested and NVRAM reading works with this change.