2015-10-09 06: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 01:50 AM
2015-10-10 07: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.