Rather than newer standards-version binary constant.
pull/20/head
A. Maitland Bottoms 2024-01-06 21:48:55 -05:00
rodzic 1c6a39d679
commit 1832a8eda5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -232,7 +232,7 @@ int main(int argc, char* argv[])
//fprintf(stderr, "DST: %02X %02X %02X %02X %02X %02X\n", lsf.dst[0], lsf.dst[1], lsf.dst[2], lsf.dst[3], lsf.dst[4], lsf.dst[5]);
//fprintf(stderr, "SRC: %02X %02X %02X %02X %02X %02X\n", lsf.src[0], lsf.src[1], lsf.src[2], lsf.src[3], lsf.src[4], lsf.src[5]);
fprintf(stderr, "Data CRC:\t%04hX\n", packet_crc);
type=((uint16_t)0b01<<1)|((uint16_t)can<<7); //packet mode, content: data
type=((uint16_t)0x01<<1)|((uint16_t)can<<7); //packet mode, content: data
lsf.type[0]=(uint16_t)type>>8;
lsf.type[1]=(uint16_t)type&0xFF;
memset(&lsf.meta, 0, 112/8);