Format mirror_bytes
correctly
This commit is contained in:
parent
6db323c570
commit
66b18495eb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ uint8_t mirror_bytes(uint8_t byte)
|
|||
{
|
||||
uint8_t res = 0;
|
||||
|
||||
for (uint8_t x=0; x < 8; ++x) {
|
||||
for (uint8_t x = 0; x < 8; x += 1) {
|
||||
res = (res << 1) | (byte & 1);
|
||||
byte >>= 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue