bq27xxx_battery has a check for status flags in order to detect changes and report to userspace. However, the cached flags are updated before checking for changes, hence no flag-related events are ever sent. This patch fixes this behavior, and has been sent upstream. [ci:skip-build]: already built successfully in CI