fix resources linklist init error

This commit is contained in:
Liu_Weichao
2021-04-29 15:06:43 +08:00
parent 88686fe544
commit 4ff72f080c
13 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -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) {