+ if (mma655x != null) {
+ int accel = mma655x.accel;
+ if (cal_data.mma655x_inverted)
+ accel = 4095 - accel;
+ if (cal_data.pad_orientation == AltosLib.AO_PAD_ORIENTATION_ANTENNA_DOWN)
+ accel = 4095 - accel;
+ listener.set_acceleration(cal_data.acceleration(accel));
+ }