[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/paparazzi] eb38af: [ms5611] Fix baro i2c
From: |
GitHub |
Subject: |
[paparazzi-commits] [paparazzi/paparazzi] eb38af: [ms5611] Fix baro i2c transactions |
Date: |
Fri, 21 Nov 2014 02:40:01 -0800 |
Branch: refs/heads/master
Home: https://github.com/paparazzi/paparazzi
Commit: eb38af898cce19be9cf2927bd90ff372dd64fa30
https://github.com/paparazzi/paparazzi/commit/eb38af898cce19be9cf2927bd90ff372dd64fa30
Author: Freek van Tienen <address@hidden>
Date: 2014-11-21 (Fri, 21 Nov 2014)
Changed paths:
M sw/airborne/peripherals/ms5611_i2c.c
Log Message:
-----------
[ms5611] Fix baro i2c transactions
Since the simple i2c driver for linux does busy waiting on i2c_submit (and not
queue a new transaction),
setting the transaction status to done at the end (with a new transcaction in
between) will set the status
of the wrong transaction...
Did not seem happen with the other i2c implementations (lpc21, stm32) so far,
but since they add the transaction
to the queue which is handled in the I2C ISR, it could also happen there (race
condition).
closes #960
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [paparazzi/paparazzi] eb38af: [ms5611] Fix baro i2c transactions,
GitHub <=