Fixed bug 3605053.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5226 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
0b9f09be24
commit
df2a990924
|
@ -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.*/ \
|
||||
|
|
Loading…
Reference in New Issue