diff --git a/firmware.bin b/firmware.bin deleted file mode 100644 index 1c28e12..0000000 Binary files a/firmware.bin and /dev/null differ diff --git a/firmware.packed.bin b/firmware.packed.bin deleted file mode 100644 index 8befb37..0000000 Binary files a/firmware.packed.bin and /dev/null differ diff --git a/mdc1200.c b/mdc1200.c index 08c406b..72544de 100644 --- a/mdc1200.c +++ b/mdc1200.c @@ -10,11 +10,11 @@ // 24-bit pre-amble // 40-bit sync // -//static const uint8_t header[] = {0x00, 0x00, 0x00, 0x00, 0x55, 0x55, 0x55, 0x07, 0x09, 0x2a, 0x44, 0x6f}; -//static const uint8_t header[] = {0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0x07, 0x09, 0x2a, 0x44, 0x6f}; +//static const uint8_t header[] = {0x00, 0x00, 0x00, 0x55, 0x55, 0x55, 0x55, 0x07, 0x09, 0x2a, 0x44, 0x6f}; +//static const uint8_t header[] = {0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0x07, 0x09, 0x2a, 0x44, 0x6f}; // -//static const uint8_t header[] = {0x00, 0x00, 0x00, 0x0A, 0xAA, 0xAA, 0xA0, 0xb6, 0x8e, 0x03, 0xbb, 0x14}; -static const uint8_t header[] = {0x00, 0x00, 0x00, 0x00, 0x55, 0x55, 0x50, 0x29, 0x71, 0xfc, 0x44, 0xeb}; +//static const uint8_t header[] = {0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xA0, 0xb6, 0x8e, 0x03, 0xbb, 0x14}; +static const uint8_t header[] = {0x00, 0x00, 0x00, 0x55, 0x55, 0x55, 0x50, 0x29, 0x71, 0xfc, 0x44, 0xeb}; uint8_t bit_reverse_8(uint8_t n) {