Skip to content

Commit

Permalink
Send temperature in correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Jan 24, 2025
1 parent e801318 commit 36de09a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sensors/softfusion/softfusionsensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ class SoftFusionSensor : public Sensor {
return true;
}

void sendData() {
Sensor::sendData();
sendTempIfNeeded();
}

void sendTempIfNeeded() {
uint32_t now = micros();
constexpr float maxSendRateHz = 2.0f;
Expand Down Expand Up @@ -213,7 +218,6 @@ class SoftFusionSensor : public Sensor {
~SoftFusionSensor() override = default;

void motionLoop() final {
sendTempIfNeeded();

calibrator.tick();

Expand Down

0 comments on commit 36de09a

Please sign in to comment.