|
@@ -1218,7 +1218,7 @@ void request_task(void *params)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-#if CHECK_LOAD_ENABLE
|
|
|
+#ifdef CHECK_LOAD_ENABLE
|
|
|
xTimerStart(AutoTestTimer, 0);
|
|
|
xTimerChangePeriod(AutoTestTimer, 60*configTICK_RATE_HZ, 0);
|
|
|
#endif
|
|
@@ -1338,7 +1338,7 @@ void ups_megatec_init(void)
|
|
|
xTaskCreate(akb_time_work_task, ( char * ) "akb_time_work_task", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY,
|
|
|
NULL);
|
|
|
UPSRestoreTimer = xTimerCreate("UPSRestoreTmr", configTICK_RATE_HZ*30, pdFALSE, ( void * ) 0, UPSRestoreCallback);
|
|
|
-#if CHECK_LOAD_ENABLE
|
|
|
+#ifdef CHECK_LOAD_ENABLE
|
|
|
AutoTestTimer = xTimerCreate("AutoTestTmr", configTICK_RATE_HZ*PERIOD_AUTO_TEST, pdTRUE, ( void * ) 0, AutoTestCallback);
|
|
|
#endif
|
|
|
}
|