diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-17 14:04:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-02-17 14:04:11 +0000 |
commit | df2a9909241e09bed7e1028d1e27030073182649 (patch) | |
tree | cbf58a27675b0ec385c502c9769cade8bb714d2d /os/hal/include | |
parent | 0b9f09be24512c7d9c0af453ebadc3307ca90f25 (diff) | |
download | ChibiOS-df2a9909241e09bed7e1028d1e27030073182649.tar.gz ChibiOS-df2a9909241e09bed7e1028d1e27030073182649.tar.bz2 ChibiOS-df2a9909241e09bed7e1028d1e27030073182649.zip |
Fixed bug 3605053.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5226 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/adc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/include/adc.h b/os/hal/include/adc.h index d7f918da3..7db0f7641 100644 --- a/os/hal/include/adc.h +++ b/os/hal/include/adc.h @@ -228,7 +228,7 @@ typedef enum { /* Invokes the callback passing the 2nd half of the buffer.*/ \
size_t half = (adcp)->depth / 2; \
size_t half_index = half * (adcp)->grpp->num_channels; \
- (adcp)->grpp->end_cb(adcp, (adcp)->samples + half_index, (adcp)->depth - half); \
+ (adcp)->grpp->end_cb(adcp, (adcp)->samples + half_index, half); \
} \
else { \
/* Invokes the callback passing the whole buffer.*/ \
|