2015-10-09 6:06 PM
Guys,
What should I change for fixing : Warning : comparison of constant 49152 with expression of type ''unsigned char'' is always true ....? the line is : while(Mp3ReadRegister(0x03) != CLOCK_REG) .... unsigned char Mp3ReadRegister( unsigned char addressbyte) #define CLOCK_REG 0xc000 Thanks2015-10-10 1:50 AM
2015-10-10 7:47 AM
So is CLOCK_REG the content of the register? If the registers are 16-bit wide you'd probably want to do the comparison as such.
The compiler just figured out your two numbers can never be the same, so the inequality is always true.We’re moving the ST Community to a new platform to give you a better and more reliable community experience.