Small fix to avoid errors when the battery is disconnected
Removed useless warning when battery is charging