Question regarding nrf_fuel_gauge_idle_set behavior and SoC estimation during charger connection

I am using the nrf_fuel_gauge_idle_set function to handle the fuel gauge state when the system enters a low-power mode. When the charger is connected, I exit this state and call nrf_fuel_gauge_process.

However, connecting the charger causes a voltage spike, and this spike is fed into the nrf_fuel_gauge_process call. The SoC estimated by nrf_fuel_gauge_idle_set does not seem to update, as the SoC value remains unchanged.

Is this behavior expected? Would it be better to use the battery voltage measured just prior to connecting the charger instead?

Related