paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [6101] Advance to the next step even if the i2c fail


From: Allen Ibara
Subject: [paparazzi-commits] [6101] Advance to the next step even if the i2c fails
Date: Fri, 08 Oct 2010 04:39:16 +0000

Revision: 6101
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6101
Author:   aibara
Date:     2010-10-08 04:39:16 +0000 (Fri, 08 Oct 2010)
Log Message:
-----------
Advance to the next step even if the i2c fails

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/booz/peripherals/booz_hmc5843.c

Modified: paparazzi3/trunk/sw/airborne/booz/peripherals/booz_hmc5843.c
===================================================================
--- paparazzi3/trunk/sw/airborne/booz/peripherals/booz_hmc5843.c        
2010-10-08 04:38:47 UTC (rev 6100)
+++ paparazzi3/trunk/sw/airborne/booz/peripherals/booz_hmc5843.c        
2010-10-08 04:39:16 UTC (rev 6101)
@@ -16,7 +16,8 @@
 
 void hmc5843_periodic(void) {
   
-  if (hmc5843_i2c_trans.status != I2CTransSuccess) return;
+  if (hmc5843_i2c_trans.status == I2CTransPending) return;
+
   switch (hmc5843.status) {
   case HMC5843_UNINITIALIZED1:
     hmc5843_i2c_trans.buf[0] = HMC5843_REG_CFGA;  // set to rate to 50Hz




reply via email to

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