This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

zigbee3.0协议栈writeItem函数问题

Other Parts Discussed in Thread: Z-STACK

osal_nv.c文件中

@@ -1073,11 +1073,11 @@ static uint8 writeItem( uint8 pg, uint16 id, uint16 len, void *buf, uint8 flag )
OSAL_NV_HDR_ITEM, (uint8 *)(hdrData));
readHdr( pg, hdrOff, (uint8 *)(&hdr) );

if ( chk == hdr.chk )
{
- hotItemUpdate(pg, hdrOff, hdr.id);
+ hotItemUpdate(pg, datOff, hdr.id);
rtrn = TRUE;
}
}
}
else

到底哪个是对的?