Skip to content

请教一个小问题 #1

@googlehim

Description

@googlehim

uMBM_GeneralReqPack_t pack;
pack.destAddr = 0x01;
pack.data.length = 10;
pack.regAddr = 0;
uMBM_ErrCode_t err = uMBM_HoldingReg_Read(uMBM_GetDev(SensorHub, 0), &pack, osWaitForever);
if (err != MBM_ERR_OK) {
for (;;);
}
else {
uint16_t rcvHoldingReg[10];
uint16_t rcvLength = uMBM_GetBuffer_16(uMBM_GetDev(SensorHub, 0), rcvHoldingReg);
}
在 uMBM_HoldingReg_Read 里Release掉了Dev资源,然后在uMBM_GetBuffer_16里拷贝buffer,buffer会不会存在被冲掉的可能?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions