if stament with uint8_t

46 Views Asked by At

knowing the value of the variable tempStatusSelectorByte is 0, in the if stament it is giving true for tempStatusSelectorByte>4.


uint8_t tempStatusSelectorByte;

tempStatusSelectorByte = AT24C32_Device.readStatusSelectorByte();
printf("settingup -> statusSelectorByte: %d\n", statusSelectorByte); //It prints 0

if(tempStatusSelectorByte>4 ){ // it is true

Please let me know how to solve the problem.

0

There are 0 best solutions below