diff core/I2c_Codec.cpp @ 172:5f4408705eed

Cleanup
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 28 Dec 2015 04:00:12 +0100
parents e63563507edd
children 4c5acd649d46
line wrap: on
line diff
--- a/core/I2c_Codec.cpp	Mon Dec 28 03:53:36 2015 +0100
+++ b/core/I2c_Codec.cpp	Mon Dec 28 04:00:12 2015 +0100
@@ -271,10 +271,7 @@
 		// Values between 0b01110111 and 0b01111111 are clipped to 59.5dB
 		value = (int)(newGain * 2 + 0.5) & 0x7f;
 	}
-	printf("channel: %d, gain: %f, value: 0x%x, reg: 0x%x\n", channel, newGain, value, reg);
-	int ret = writeRegister(reg, value);
-	printf("ret: %d\n", ret);
-	return ret;
+	return writeRegister(reg, value);
 }
 
 // Set the volume of the DAC output