[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [paparazzi/paparazzi] 3250aa: [fix] correct ADC buff
From: |
Gautier Hattenberger |
Subject: |
[paparazzi-commits] [paparazzi/paparazzi] 3250aa: [fix] correct ADC buffer offset for ChibiOS (#2761) |
Date: |
Tue, 17 Aug 2021 08:25:03 -0700 |
Branch: refs/heads/master
Home: https://github.com/paparazzi/paparazzi
Commit: 3250aa8dcd2ccca9b17edcb574a1332b26703dc3
https://github.com/paparazzi/paparazzi/commit/3250aa8dcd2ccca9b17edcb574a1332b26703dc3
Author: Gautier Hattenberger <gautier.hattenberger@enac.fr>
Date: 2021-08-17 (Tue, 17 Aug 2021)
Changed paths:
M sw/airborne/arch/chibios/mcu_periph/adc_arch.c
Log Message:
-----------
[fix] correct ADC buffer offset for ChibiOS (#2761)
- with ChibiOS 20.3 the half buffer starting position is computed by
hand and was wrong in this case: it should be the product of the half
buffer size by the number of channels
- some other minor fixes:
- using && instead of & in boolean comparison
- suppress a warning (comparison always true/false due to limited data range)
when the number of channels is zero (no ADC in use)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [paparazzi/paparazzi] 3250aa: [fix] correct ADC buffer offset for ChibiOS (#2761),
Gautier Hattenberger <=