mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 20:04:09 +08:00
send I2C errors report
This commit is contained in:
@@ -69,6 +69,11 @@ static inline void main_periodic_task( void ) {
|
||||
RunOnceEvery(2, {baro_periodic();});
|
||||
LED_PERIODIC();
|
||||
RunOnceEvery(256, {DOWNLINK_SEND_ALIVE(DefaultChannel, 16, MD5SUM);});
|
||||
RunOnceEvery(256, {DOWNLINK_SEND_I2C_ERRORS(DefaultChannel, &i2c2.errc_ack_fail, &i2c2.errc_miss_start_stop,
|
||||
&i2c2.errc_arb_lost, &i2c2.errc_over_under,
|
||||
&i2c2.errc_pec_recep, &i2c2.errc_timeout_tlow,
|
||||
&i2c2.errc_smbus_alert);})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user