Although they are only warnings, I like to go through my code and get rid of them wherever possible. I have the above error in my code and simply don't understand it.
Here is the code concerned,
The error occurs on the calls to PutNibble. Everything is declared unsigned. So where is the conversion taking place?
Mike.
Here is the code concerned,
Code:
void PutNibble(unsigned char nib){
nib+=0x30;
if(nib>'9')
nib+=7;
PutTXFifo(nib);
}
void PutHex(unsigned char hex){
PutNibble(hex>>4); //Error here
PutNibble(hex&0x0f); //and here
}
Mike.