This commit is contained in:
iceman1001 2021-04-27 19:16:21 +02:00
parent 82e71d7815
commit 58d8fa0e3b

View file

@ -481,8 +481,8 @@ void askAmp(uint8_t *bits, size_t size) {
uint32_t manchesterEncode2Bytes(uint16_t datain) {
uint32_t output = 0;
for (uint8_t i = 0; i < 16; i++) {
uint8_t curBit = (datain >> (15 - i) & 1);
output |= (1 << (((15 - i) * 2) + curBit));
uint8_t b = (datain >> (15 - i) & 1);
output |= (1 << (((15 - i) * 2) + b));
}
return output;
}