Add a work queue call in goldfish_battery_register() to trigger an initial battery state update immediately after driver initialization. Previously, the battery state was only updated when a interrupt occurred. This could cause the battery_state uORB topic to have no data available during early boot, leading to failures when applications tried to read battery information via orb_copy(). Signed-off-by: chenzihan1 <chenzihan1@xiaomi.com> |
||
|---|---|---|
| .. | ||
| battery | ||
| pm | ||
| relay | ||
| supply | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||