aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/battery/BatteryController.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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