Skip to content

Commit 9e406c7

Browse files
pipe01JF002
authored andcommitted
Remove unnecessary BMA421 reads
1 parent 0c87bc2 commit 9e406c7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/drivers/Bma421.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ Bma421::Values Bma421::Process() {
126126
uint32_t steps = 0;
127127
bma423_step_counter_output(&steps, &bma);
128128

129-
int32_t temperature;
130-
bma4_get_temperature(&temperature, BMA4_DEG, &bma);
131-
temperature = temperature / 1000;
132-
133-
uint8_t activity = 0;
134-
bma423_activity_output(&activity, &bma);
135-
136129
// X and Y axis are swapped because of the way the sensor is mounted in the PineTime
137130
return {steps, data.y, data.x, data.z};
138131
}

0 commit comments

Comments
 (0)