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
+1 -1
View File
@@ -119,7 +119,7 @@ int SpiDeviceRegister(struct SpiHardwareDevice *spi_device, void *spi_param, con
x_err_t ret = EOK;
static x_bool dev_link_flag = RET_FALSE;
if (dev_link_flag) {
if (!dev_link_flag) {
SpiDeviceLinkInit();
dev_link_flag = RET_TRUE;
}