Skip to content

Commit

Permalink
Remove unnecessary BMA421 reads
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 authored and JF002 committed Jun 2, 2024
1 parent 0c87bc2 commit 9e406c7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/drivers/Bma421.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down

0 comments on commit 9e406c7

Please sign in to comment.