battery: fix condition of update_online() 71/269571/1
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 18 Jan 2022 09:15:06 +0000 (18:15 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 18 Jan 2022 09:15:06 +0000 (18:15 +0900)
commit155d339001b0c9ec0c115f0f282354b1ab47186b
tree0188bdcad2eb1b28626772d8023f3004ba56ef40
parentb351e34552d8dc1a90d698ca2ae6e9b558398ea6
battery: fix condition of update_online()

Initialize online_status by -1 so that the update_online() shall process
properly even when the device has turned on with charger disconnected.

Change-Id: I25c51f0aa856c2b1190f148f650b674054f918f7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/battery/power-supply.c