DeepDeck.Ahuyama.fw
DeepDeck.Ahuyama.fw copied to clipboard
Battery Status issues
I have a battery so I enabled the battery status. There were couple of issues, thst I fixed.
- Battery monitor is being called before initialized.
- Resistor values in firmware do not agree with board, should be 10k/10k.
- The ADC_ATTEN_DB_ set too low. Should be DB_11.
- The screen battery status is not being updated, when the battery changed by 1 percent. oled_tasks.c h ignores changes of 1 percent or less. Unfortunately, update prev_battery_percent get updated anyway. As a result screen is never updated.
- Also in oled_tasks, BATT_FLAG is being set (=1) in couple of if statements. I think it what's meant to be a boolean test (==1).
BTW: i have solutions to all of these issues