[US20] fix 'Invalid battery level' crash and use uint64_t types