mirror of https://github.com/ARMmbed/mbed-os.git
missing parens
parent
060d2f5216
commit
a5e1bdb97e
|
@ -488,7 +488,7 @@ private:
|
|||
uint8_t byte = bit_number / 8;
|
||||
uint8_t bit = bit_number - byte;
|
||||
bytes += byte;
|
||||
*bytes |= 0x01 >> bit;
|
||||
*bytes |= (0x01 >> bit);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -499,7 +499,7 @@ private:
|
|||
uint8_t byte = bit_number / 8;
|
||||
uint8_t bit = bit_number - byte;
|
||||
bytes += byte
|
||||
*bytes &= 0x00 >> bit;
|
||||
*bytes &= (0x00 >> bit);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue