Context
Part of the auto-trigger convention audit (#44).
After power_down(), calling acceleration_g(), gyroscope_dps(), or temperature_c() returns stale/frozen data without warning. The driver should automatically re-enable the sensor and trigger a fresh measurement, consistent with the pattern used in WSEN-PADS, WSEN-HIDS, and HTS221.
TODO
Related
Context
Part of the auto-trigger convention audit (#44).
After
power_down(), callingacceleration_g(),gyroscope_dps(), ortemperature_c()returns stale/frozen data without warning. The driver should automatically re-enable the sensor and trigger a fresh measurement, consistent with the pattern used in WSEN-PADS, WSEN-HIDS, and HTS221.TODO
_is_power_down()method (check if CTRL1_XL and CTRL2_G are both 0)_ensure_data()method that restores previous ODR/scale if in power-down mode_ensure_data()inacceleration_raw(),gyroscope_raw(),temperature_raw()power_down()+ readRelated