4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 11:53:53 +08:00

Merge pull request #1497 from arthur-jx/master

[bsp] [stm32f10x]  fix watchdog control set timeout argument bug.
This commit is contained in:
Bernard Xiong 2018-06-04 13:21:40 +08:00 committed by GitHub
commit 7d6b7dc3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ static rt_err_t stm32f1_wdg_control(rt_watchdog_t *wdt, int cmd, void *arg)
switch(cmd)
{
case RT_DEVICE_CTRL_WDT_SET_TIMEOUT:
timeout_ms = (rt_uint32_t) arg;
timeout_ms = *((rt_uint32_t*) arg);
IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
if(timeout_ms >= 13107)
{