Set max interval for sleep + use first gyro temp

This commit is contained in:
Magnus
2021-04-11 11:29:15 +02:00
parent c1c325a2bc
commit 1269bf6f0e
7 changed files with 23 additions and 10 deletions

View File

@ -97,8 +97,9 @@ float TempSensor::getValue() {
#endif
#if defined( USE_GYRO_TEMP )
// When using the gyro temperature only the first read value will be accurate so we will use this for processing.
//LOG_PERF_START("temp-get");
float c = myGyro.getSensorTempC();
float c = myGyro.getInitialSensorTempC();
//LOG_PERF_STOP("temp-get");
hasSensor = true;
return c;