Quentin Roche / ST_I2S

Dependents:   X_NUCLEO_CCA02M1

Fork of ST_I2S by ST

Revision:
11:50562a5f8a93
Parent:
10:1a612c2e4a85
Child:
16:04e1abb4cca3
--- a/drivers/I2S.cpp	Thu Dec 22 12:02:24 2016 +0100
+++ b/drivers/I2S.cpp	Thu Dec 22 14:39:28 2016 +0100
@@ -117,6 +117,7 @@
 
     dev_i2s_2.lock();
     if (i2s_active(&dev_i2s_2._i2s)) {
+	dev_i2s_2.unlock();
 	dev_i2s_1.unlock();
 	return -1;
     }