MSB-LSB Bit swop not working with ESP32 Compiler
Posted: Thu Oct 30, 2025 8:20 pm
Hello Flow Code Community,
may some one could help me please. I´ll try to use the follwing MSB-LSB Bit swop with ESP32:
DATACRC = (DATACRC >> 7) & 1 | (DATACRC >> 5) & 2 | (DATACRC >> 3) & 4 | (DATACRC >> 1) & 8 | (DATACRC << 1) & 0x10 | (DATACRC << 3) & 0x20 | (DATACRC << 5) & 0x40 | (DATACRC << 7) & 0x80
Unfortunately with this calculation I can not compile to ESP32. With my PIC 18Fxxxx Controler I never had a compile problem with this calculation.
May somebody can teach me how to modify.
BR
Dirk
may some one could help me please. I´ll try to use the follwing MSB-LSB Bit swop with ESP32:
DATACRC = (DATACRC >> 7) & 1 | (DATACRC >> 5) & 2 | (DATACRC >> 3) & 4 | (DATACRC >> 1) & 8 | (DATACRC << 1) & 0x10 | (DATACRC << 3) & 0x20 | (DATACRC << 5) & 0x40 | (DATACRC << 7) & 0x80
Unfortunately with this calculation I can not compile to ESP32. With my PIC 18Fxxxx Controler I never had a compile problem with this calculation.
May somebody can teach me how to modify.
BR
Dirk