aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Martínez <pipernene@gmail.com>2024-05-12 22:05:30 +0200
committerJF <JF002@users.noreply.github.com>2024-06-02 15:48:26 +0200
commit9e406c70f95c2db93bbf84965c210ee274da1dd2 (patch)
treef338cad0a38c5c8815a5f1e5f284d7300a6e1e84
parent0c87bc27b21f343a815eed3d7b5817e3b24d2d1d (diff)
Remove unnecessary BMA421 reads
-rw-r--r--src/drivers/Bma421.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/Bma421.cpp b/src/drivers/Bma421.cpp
index aff62b8d..74d47d06 100644
--- a/src/drivers/Bma421.cpp
+++ b/src/drivers/Bma421.cpp
@@ -126,13 +126,6 @@ Bma421::Values Bma421::Process() {
uint32_t steps = 0;
bma423_step_counter_output(&steps, &bma);
- int32_t temperature;
- bma4_get_temperature(&temperature, BMA4_DEG, &bma);
- temperature = temperature / 1000;
-
- uint8_t activity = 0;
- bma423_activity_output(&activity, &bma);
-
// X and Y axis are swapped because of the way the sensor is mounted in the PineTime
return {steps, data.y, data.x, data.z};
}