Il y avait des problèmes dans la libraire...

Dependents:   X_NUCLEO_CCA02M1

Fork of ST_I2S by ST

Revision:
24:b78825180506
Parent:
23:6ebde375d2d1
Child:
26:468cdd70cd3e
--- a/targets/TARGET_STM/stm_i2s_api.c	Tue Feb 07 11:16:14 2017 +0100
+++ b/targets/TARGET_STM/stm_i2s_api.c	Mon Feb 13 11:53:21 2017 +0100
@@ -737,7 +737,7 @@
     case HAL_I2S_STATE_ERROR:
 	return 0;
     default:
-	return -1;
+	return 1;
     }
 }
 
@@ -901,7 +901,7 @@
     if (rest == 0) {
         return 0;
     }
-    uint32_t multiplier = ((rest >= 0.5) ? ((uint32_t)division + 1) : (uint32_t)division);
+    uint32_t multiplier = ((rest >= 0.5f) ? ((uint32_t)division + 1) : (uint32_t)division);
 
     /* Get MCLK settings for both devices */
     bool low_freq_mclk = i2s_has_mclk(i2s_t_l);