They use a different code path for accel as they don't have the
VCC compensation code in place.
Signed-off-by: Keith Packard <keithp@keithp.com>
if (ao_config.pad_orientation != AO_PAD_ORIENTATION_ANTENNA_UP)
ao_sample_accel = 0x7fff - ao_sample_accel;
ao_adc->accel = ao_sample_accel;
+#else
+ if (ao_config.pad_orientation != AO_PAD_ORIENTATION_ANTENNA_UP) {
+ ao_sample_accel = 0x7fff - ao_sample_accel;
+ ao_adc->accel = ao_sample_accel;
+ }
#endif
#endif