Merge pull request #1915 from XXXXzzzz000/fix_stm32f4xx-hal_iwg

[bsp][stm32f4xx-HAL] fix iwg driver.
This commit is contained in:
Bernard Xiong 2018-10-23 10:22:15 +08:00 committed by GitHub
commit 9442207455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ static rt_err_t drv_control(rt_watchdog_t *wdt, int cmd, void *arg)
switch (cmd)
{
case RT_DEVICE_CTRL_WDT_SET_TIMEOUT:
hiwdg.Init.Reload = (rt_uint32_t)arg;
hiwdg.Init.Reload = (rt_uint32_t)*arg;
if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
{
return RT_ERROR;