Skip to content

Commit 2c4efe1

Browse files
authored
fix ESP32 IMU task priority
1 parent a7dc113 commit 2c4efe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/madflight/hw_ESP32/hw_ESP32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This file defines:
4040
// IMU
4141
//======================================================================================================================//
4242
#define IMU_EXEC IMU_EXEC_FREERTOS //ESP32 always uses FreeRTOS on core0 (can't used float on core1)
43-
#define IMU_FREERTOS_TASK_PRIORITY 31 //IMU Interrupt task priority, higher number is higher priority. Max priority on ESP32 is 31
43+
#define IMU_FREERTOS_TASK_PRIORITY (configMAX_PRIORITIES - 1) //IMU Interrupt task priority, higher number is higher priority. Max priority on ESP32 is 31
4444

4545
//======================================================================================================================//
4646
// FREERTOS

0 commit comments

Comments
 (0)