InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.63k stars 901 forks source link

Remove unnecessary BMA421 reads #2064

Closed pipe01 closed 3 weeks ago

pipe01 commented 1 month ago

The Bma421::Process function is fetching the sensor's temperature and activity output and assigning them to local variables which are never used, so this code seems to be useless and could reduce power usage.

github-actions[bot] commented 1 month ago

Build checks have not completed. Possible reasons for this are:

  1. The checks need to be approved by a maintainer
  2. The branch has conflicts
  3. The firmware build has failed