We are using 51822 through I2C to get G-sensor buffer, every 560ms ( sample every 20ms, buffer for 28), then execute for step counter calculation, which should not consume much power. But the current measurement seeing, peak@4mA, rise to peak and down period last 150ms? sleep is working, but not sure why it took such long time to do so and peak @ 4mA? see picture below
we use twi_sw_master reference code