Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Firmware/RTK_Surveyor/Begin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ bool beginExternalTriggers()

void beginIdleTasks()
{
#ifdef COMPILE_IDLE_TASKS
if (settings.enablePrintIdleTime == true)
{
char taskName[32];
Expand All @@ -723,6 +724,7 @@ void beginIdleTasks()
index); //Core where task should run, 0=core, 1=Arduino
}
}
#endif //COMPILE_IDLE_TASKS
}

void beginI2C()
Expand Down
1 change: 1 addition & 0 deletions Firmware/RTK_Surveyor/RTK_Surveyor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const int FIRMWARE_VERSION_MINOR = 4;
#define COMPILE_AP //Comment out to remove Access Point functionality
#define COMPILE_L_BAND //Comment out to remove L-Band functionality
#define COMPILE_ESPNOW //Comment out to remove ESP-Now functionality
#define COMPILE_IDLE_TASKS //Comment out to remove idle tasks
#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)

//Define the RTK board identifier:
Expand Down
3 changes: 3 additions & 0 deletions Firmware/RTK_Surveyor/Tasks.ino
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ void ButtonCheckTask(void *e)
}
}

#ifdef COMPILE_IDLE_TASKS
void idleTask(void *e)
{
int cpu = xPortGetCoreID();
Expand Down Expand Up @@ -667,3 +668,5 @@ void idleTask(void *e)
taskYIELD();
}
}
#endif //COMPILE_IDLE_TASKS