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