Maxcube Fix for issue 1728

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Merge pull request #1793 from marcelrv/fix_issue_battery

[Maxcube] Fix for issue 1728