Mercurial > hg > beaglert
diff core/I2c_Codec.cpp @ 476:838a4a4a8580 prerelease
Removed warnings, now libpd_render can compile with Clang as well
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 20 Jun 2016 21:20:28 +0100 |
parents | 869f5e703844 |
children |
line wrap: on
line diff
--- a/core/I2c_Codec.cpp Mon Jun 20 20:39:00 2016 +0100 +++ b/core/I2c_Codec.cpp Mon Jun 20 21:20:28 2016 +0100 @@ -166,7 +166,7 @@ //set fractional part(between 0 and 9999) of the numerator mutliplier of the PLL int I2c_Codec::setPllD(unsigned int d){ - if(d<0 || d>9999) + if(d >9999) return 1; if(writeRegister(0x05, (d>>6)&255)){ // PLL register C: part 1 : 8 most significant bytes of a 14bit integer printf("I2C error while writing PLL d part 1 : %d", d);