aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/battery/BatteryController.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' into fix_adcRiku Isokoski2021-07-131-10/+9
|\
| * Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-111-10/+3
| | | | | | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* | Fix misconfigured ADC and remove now unnecessary filteringRiku Isokoski2021-07-121-11/+3
|/
* Whitespace and brace fixes (#456)Avamander2021-07-041-1/+2
| | | | | * Brace style and whitespace fixes * Additional whitespace fixes
* Float voltage to int (#444)Riku Isokoski2021-07-021-5/+9
| | | | * Change voltage float to millivolt integer * Explain the ADC to milliVolts conversion
* static_cast cleanupAvamander2021-07-021-1/+1
|
* Emit event on power-present toggle (#320)David Ventura2021-05-161-1/+0
| | | | | | | | | | | | | | | * Emit event on power-present toggle * clang-format on changes * also update battery status on any event * update comments; remove double battery update * Fix formatting * Vibrate shortly on charging event * debounce charge event
* Reformatted all the files according to clang-format styleAvamander2021-04-241-41/+37
|
* In order to stabilize the battery reading,Joaquim2021-04-161-6/+17
| | | | | | I modified the process to make 5 consecutive readings, as the process is asynchronous, there is no interference in the main process.
* restore battery bufferJoaquim2021-04-081-8/+2
|
* Fix wake up lock in twiJoaquim2021-04-051-27/+21
| | | | optimize battery code
* double tap wakeup error fixJoaquim2021-04-041-17/+57
| | | | battery nonblocking read
* Converted percent remaining calc to int.panky-codes2021-01-161-3/+3
|
* Implemented a circular buffer and added an average alg for batter remaining ↵panky-codes2021-01-141-1/+3
| | | | percentage.
* Include cleanup: componentsokaestne2020-11-161-2/+1
|
* Fixed all the includes that were broken due to the renamesAvamander2020-10-021-0/+48