mirror of
https://github.com/clockworkpi/PicoCalc.git
synced 2026-03-30 08:52:39 +02:00
Fix: use reg REG_ID_BAT to store current battery percent
also fix bug in low_bat, use low_bat_count to debounce first time battery percent detection error
This commit is contained in:
@@ -41,5 +41,5 @@ void reg_init(void)
|
||||
regs[REG_ID_FRQ] = 5;
|
||||
regs[REG_ID_BKL] = 255;//100%duty
|
||||
regs[REG_ID_BK2] = 0;
|
||||
regs[REG_ID_BAT] = 0xff; //default .no battery
|
||||
regs[REG_ID_BAT] = 0; //default .no battery ,no charging
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user