From bae460fde165578a93c3aa6b980c73b49aba9d9c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 10 Jul 2018 12:00:23 +0000 Subject: Fixed bug #959. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12153 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/include/hal_i2s.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'os/hal/include') diff --git a/os/hal/include/hal_i2s.h b/os/hal/include/hal_i2s.h index a7ec3b352..5d9e3cc57 100644 --- a/os/hal/include/hal_i2s.h +++ b/os/hal/include/hal_i2s.h @@ -129,17 +129,16 @@ typedef enum { * * @notapi */ -#define _i2s_isr_full_code(i2sp) { \ +#define _i2s_isr_full_code(i2sp) { \ if ((i2sp)->config->end_cb) { \ (i2sp)->state = I2S_COMPLETE; \ (i2sp)->config->end_cb(i2sp, \ (i2sp)->config->size / 2, \ (i2sp)->config->size / 2); \ - if ((i2sp)->state == I2S_COMPLETE) \ - (i2sp)->state = I2S_READY; \ + if ((i2sp)->state == I2S_COMPLETE) { \ + (i2sp)->state = I2S_ACTIVE; \ + } \ } \ - else \ - (i2sp)->state = I2S_READY; \ } /** @} */ -- cgit v1.2.3