Skip to content

Commit

Permalink
dont change the measure mode rate for the normal firmware, makes it f…
Browse files Browse the repository at this point in the history
…alsely trigger overpressures
  • Loading branch information
ryanthecoder committed May 10, 2024
1 parent ea6cf52 commit bc5040c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/sensors/core/tasks/pressure_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,13 @@ class MMR920 {
* exceed the threshold for the entirety of this period.
*/
static constexpr uint16_t MAX_PRESSURE_TIME_MS = 200;

#ifdef USE_PRESSURE_MOVE
mmr920::MeasurementRate measurement_mode_rate =
mmr920::MeasurementRate::MEASURE_1;
#else
mmr920::MeasurementRate measurement_mode_rate =
mmr920::MeasurementRate::MEASURE_4;
#endif

bool _initialized = false;
bool echoing = false;
Expand Down

0 comments on commit bc5040c

Please sign in to comment.