#pragma once // Rough "time left on battery" estimator. Watches the AXP fuel-gauge percentage // while discharging and projects minutes-to-empty from the average drain rate // since discharge began. Coarse by design — the gauge moves in slow 1% steps — // so the UI shows it as "~Xh Ym left", emphasis on the ~. // // Feed it the latest percent + charging flag whenever a fresh battery reading // lands (the daemon-independent battery poll in main.cpp). void battery_est_update(int percent, bool charging); // Estimated minutes remaining, or: // -2 charging / on USB (no estimate to give) // -1 not enough discharge history yet ("estimating…") int battery_est_minutes(void);