diff --git a/flight/pios/common/pios_task_monitor.c b/flight/pios/common/pios_task_monitor.c index e4a1aceb5..dd1709ddb 100644 --- a/flight/pios/common/pios_task_monitor.c +++ b/flight/pios/common/pios_task_monitor.c @@ -169,8 +169,10 @@ uint8_t PIOS_TASK_MONITOR_GetIdlePercentage() xSemaphoreGiveRecursive(mLock); return running_time_percentage; -#endif +#else return 0; + +#endif } diff --git a/flight/pios/inc/pios_task_monitor.h b/flight/pios/inc/pios_task_monitor.h index b888cf637..42edc104f 100644 --- a/flight/pios/inc/pios_task_monitor.h +++ b/flight/pios/inc/pios_task_monitor.h @@ -107,7 +107,6 @@ extern void PIOS_TASK_MONITOR_ForEachTask(TaskMonitorTaskInfoCallback callback, /** * Return the idle task running time percentage. */ - extern uint8_t PIOS_TASK_MONITOR_GetIdlePercentage(); #endif // PIOS_TASK_MONITOR_H diff --git a/flight/targets/boards/revolution/firmware/inc/FreeRTOSConfig.h b/flight/targets/boards/revolution/firmware/inc/FreeRTOSConfig.h index dc4f11081..8befa7a00 100644 --- a/flight/targets/boards/revolution/firmware/inc/FreeRTOSConfig.h +++ b/flight/targets/boards/revolution/firmware/inc/FreeRTOSConfig.h @@ -65,6 +65,7 @@ #define INCLUDE_xTaskGetCurrentTaskHandle 1 #define INCLUDE_uxTaskGetStackHighWaterMark 1 #define INCLUDE_xTaskGetIdleTaskHandle 1 + /* This is the raw value as per the Cortex-M3 NVIC. Values can be 255 (lowest) to 1 (highest maskable) to 0 (highest non-maskable). */ #define configKERNEL_INTERRUPT_PRIORITY 15 << 4 /* equivalent to NVIC priority 15 */