Skip to content

Commit

Permalink
Fix guards to profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Jan 29, 2025
1 parent 0ce59b2 commit 6350b9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ void loop() {
OTA::otaUpdate();
networkManager.update();

if constexpr (DEBUG_MEASURE_SENSOR_TIME_TAKEN) {
sensorMeasurer.before();
}
#if DEBUG_MEASURE_SENSOR_TIME_TAKEN
sensorMeasurer.before();
#endif
sensorManager.update();
if constexpr (DEBUG_MEASURE_SENSOR_TIME_TAKEN) {
sensorMeasurer.after();
}
#if DEBUG_MEASURE_SENSOR_TIME_TAKEN
sensorMeasurer.after();
#endif

battery.Loop();
ledManager.update();
Expand Down
2 changes: 1 addition & 1 deletion src/sensors/softfusion/drivers/icm45base.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ struct ICM45Base {
}
};

} // namespace SlimeVR::Sensors::SoftFusion::Drivers
}; // namespace SlimeVR::Sensors::SoftFusion::Drivers

0 comments on commit 6350b9d

Please sign in to comment.