| 28 | processData(0, false, false, false, false); |
| 29 | } |
| 30 | void Accelerometer::end() |
| 31 | { |
| 32 | printf("accel end\r\n"); |
| 33 | cancel_alarm(restart_alarm_id); |
| 34 | interface.dmaDeinit(ADXL345_ADDRESS); |
| 35 | interface.dmaDeinit(MPU6050_ADDRESS); |
| 36 | interface.dmaDeinit(LIS3DH_ADDRESS); |
| 37 | interface.dmaDeinit(LIS3DH_ADDRESS_2); |
| 38 | } |
| 39 | void Accelerometer::processData(uint8_t addr, bool running, bool timeout, bool abort_detected, bool stop_detected) |
| 40 | { |
| 41 | // printf("processData %02x %d %d %d %d %d\r\n", addr, status, running, timeout, abort_detected, stop_detected); |