diff --git a/testing/ostest/wdog.c b/testing/ostest/wdog.c index 273a680e9..e64f1246f 100644 --- a/testing/ostest/wdog.c +++ b/testing/ostest/wdog.c @@ -70,13 +70,13 @@ static void wdtest_callback(wdparm_t param) { FAR wdtest_param_t *wdtest_param = (FAR wdtest_param_t *)param; - /* Increment the callback count */ - - wdtest_param->callback_cnt += 1; - /* Record the system tick at which the callback was triggered */ wdtest_param->triggered_tick = clock_systime_ticks(); + + /* Increment the callback count */ + + wdtest_param->callback_cnt += 1; } static void wdtest_checkdelay(sclock_t diff, sclock_t delay_tick)