[bsp][stm32f4xx-HAL] fix iwg driver.

This commit is contained in:
XXXXzzzz000 2018-10-20 17:53:07 +08:00
parent 1699a12b15
commit 262d4268a4
1 changed files with 1 additions and 1 deletions

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;