fix the condition for accelerometer record battery data to work