forked from xuos/xiuos
fix resources linklist init error
This commit is contained in:
@@ -55,11 +55,11 @@ int PinDeviceRegister(struct PinHardwareDevice *pin_device, void *pin_param, con
|
||||
NULL_PARAM_CHECK(device_name);
|
||||
|
||||
x_err_t ret = EOK;
|
||||
static x_bool DevLinkFlag = RET_FALSE;
|
||||
static x_bool dev_link_flag = RET_FALSE;
|
||||
|
||||
if (DevLinkFlag) {
|
||||
if (!dev_link_flag) {
|
||||
PinDeviceLinkInit();
|
||||
DevLinkFlag = RET_TRUE;
|
||||
dev_link_flag = RET_TRUE;
|
||||
}
|
||||
|
||||
if (DEV_INSTALL != pin_device->haldev.dev_state) {
|
||||
|
||||
Reference in New Issue
Block a user