DeepDeck.Ahuyama.fw icon indicating copy to clipboard operation
DeepDeck.Ahuyama.fw copied to clipboard

Battery Status issues

Open mrmcwethy opened this issue 1 year ago • 1 comments

I have a battery so I enabled the battery status. There were couple of issues, thst I fixed.

  1. Battery monitor is being called before initialized.
  2. Resistor values in firmware do not agree with board, should be 10k/10k.
  3. The ADC_ATTEN_DB_ set too low. Should be DB_11.
  4. 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.
  5. 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).

mrmcwethy avatar Apr 18 '23 13:04 mrmcwethy

BTW: i have solutions to all of these issues

mrmcwethy avatar Apr 18 '23 15:04 mrmcwethy