diff --git a/src/main/fc/fc_main.c b/src/main/fc/fc_main.c index a33b25bbf..a5367b2eb 100644 --- a/src/main/fc/fc_main.c +++ b/src/main/fc/fc_main.c @@ -703,11 +703,10 @@ void subTaskPidController(void) void subTaskMainSubprocesses(void) { - const uint32_t startTime = micros(); - // Read out gyro temperature. can use it for something somewhere. maybe get MCU temperature instead? lots of fun possibilities. - if (gyro.dev.temperature) { + // Read out gyro temperature if used for telemmetry + if (feature(FEATURE_TELEMETRY) && gyro.dev.temperature) { gyro.dev.temperature(&gyro.dev, &telemTemperature1); } @@ -717,10 +716,6 @@ void subTaskMainSubprocesses(void) } #endif -#ifdef GTUNE - updateGtuneState(); -#endif - #if defined(BARO) || defined(SONAR) // updateRcCommands sets rcCommand, which is needed by updateAltHoldState and updateSonarAltHoldState updateRcCommands();