Explorar el Código

[timer] update the RT_TIMER_CTRL_GET_STATE code in rt_timer_control

armink hace 3 años
padre
commit
75063a1b5e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/timer.c

+ 2 - 2
src/timer.c

@@ -560,12 +560,12 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
         if(timer->parent.flag & RT_TIMER_FLAG_ACTIVATED)
         {
             /*timer is start and run*/
-            *(rt_tick_t *)arg = RT_TIMER_FLAG_ACTIVATED;
+            *(rt_uint32_t *)arg = RT_TIMER_FLAG_ACTIVATED;
         }
         else
         {
             /*timer is stop*/
-            *(rt_tick_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
+            *(rt_uint32_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
         }
         break;