paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5411] Attempting to fix test_baro2.c to match new I


From: Allen Ibara
Subject: [paparazzi-commits] [5411] Attempting to fix test_baro2.c to match new I2C_ERRORS message
Date: Tue, 17 Aug 2010 04:55:52 +0000

Revision: 5411
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5411
Author:   aibara
Date:     2010-08-17 04:55:51 +0000 (Tue, 17 Aug 2010)
Log Message:
-----------
Attempting to fix test_baro2.c to match new I2C_ERRORS message

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/lisa/test_baro2.c

Modified: paparazzi3/trunk/sw/airborne/lisa/test_baro2.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/test_baro2.c      2010-08-17 04:37:47 UTC 
(rev 5410)
+++ paparazzi3/trunk/sw/airborne/lisa/test_baro2.c      2010-08-17 04:55:51 UTC 
(rev 5411)
@@ -69,12 +69,18 @@
   RunOnceEvery(2, {baro_periodic();});
   LED_PERIODIC();
   RunOnceEvery(256, {DOWNLINK_SEND_ALIVE(DefaultChannel, 16, MD5SUM);});
-  RunOnceEvery(256, {DOWNLINK_SEND_I2C_ERRORS(DefaultChannel, 
&i2c2.got_unexpected_event, 
-                                             &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);})
-    
+  RunOnceEvery(256, {
+   DOWNLINK_SEND_I2C_ERRORS(DefaultChannel,
+                            &i2c2_errors.ack_fail_cnt,
+                            &i2c2_errors.miss_start_stop_cnt,
+                            &i2c2_errors.arb_lost_cnt,
+                            &i2c2_errors.over_under_cnt,
+                            &i2c2_errors.pec_recep_cnt,
+                            &i2c2_errors.timeout_tlow_cnt,
+                            &i2c2_errors.smbus_alert_cnt,
+                            &i2c2_errors.unexpected_event_cnt,
+                            &i2c2_errors.last_unexpected_event);
+    });
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]