+
+#if HAS_ACCEL
+accel_t
+ao_data_accel(volatile struct ao_data *packet) {
+ accel_t raw;
+ raw = ao_data_accel_raw(packet);
+ if (ao_config.pad_orientation != AO_PAD_ORIENTATION_ANTENNA_UP)
+ raw = ao_data_accel_invert(raw);
+ return raw;
+}
+#endif