Hi all,
Guy's Im working on PIC18F45K22 using XC8 1.33V. My problem is
Code:
if((u16)Voltage > (u16)280)
{
DispRYBCnt = 6;
DispBuffer[3] = CHAR_r;
}
even Voltage Variable is less than 280 this condition is getting true. I tried this also
Code:
Voltage = 210;
if((u16)Voltage > (u16)280)
{
DispRYBCnt = 6;
DispBuffer[3] = CHAR_r;
}
but still 'if' condition is getting true. what is the problem. its compiler issue or what?
Kindly guide me guy's.
Thanks
Last edited by a moderator: