paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [paparazzi/paparazzi] 269441: fix sending of I2C err


From: GitHub
Subject: [paparazzi-commits] [paparazzi/paparazzi] 269441: fix sending of I2C errors via telemetry
Date: Thu, 29 Mar 2012 06:24:47 -0700

  Branch: refs/heads/spi_driver
  Home:   https://github.com/paparazzi/paparazzi
  Commit: 269441b254487da1d803ebff3269c08e605c5add
      
https://github.com/paparazzi/paparazzi/commit/269441b254487da1d803ebff3269c08e605c5add
  Author: Felix Ruess <address@hidden>
  Date:   2012-03-29 (Thu, 29 Mar 2012)

  Changed paths:
    M sw/airborne/firmwares/rotorcraft/telemetry.h

  Log Message:
  -----------
  fix sending of I2C errors via telemetry
* we can't pass the address of a volatile var to the downlink macros:
  it will be cast to (const uint8_t*) and read byte by byte and hence not work 
properly if it is volatile
* you will also rightly get a warning "cast discards qualifiers from pointer 
target type"
* so we need to copy it to a non-volatile var before sending




reply via email to

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