We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c8316 commit 6416928Copy full SHA for 6416928
src/driver/source/nmasic.c
@@ -65,6 +65,7 @@
65
sint8 chip_apply_conf(uint32 u32Conf)
66
{
67
sint8 ret = M2M_SUCCESS;
68
+ uint16 retries = TIMEOUT;
69
uint32 val32 = u32Conf;
70
71
#if (defined __ENABLE_PMU__) || (defined CONF_WINC_INT_PMU)
@@ -98,9 +99,9 @@ sint8 chip_apply_conf(uint32 u32Conf)
98
99
} else {
100
break;
101
}
- } while(1);
102
+ } while(--retries);
103
- return M2M_SUCCESS;
104
+ return retries ? M2M_SUCCESS : M2M_ERR_TIME_OUT;
105
106
void chip_idle(void)
107
0 commit comments