wuttem / simple-hdlc

Simple HDLC Protocol
MIT License
17 stars 9 forks source link

hdlc insert 0 #2

Open zhangxin6 opened 6 years ago

zhangxin6 commented 6 years ago

tx data format. 0x7e 0xaa 0x33 0xff 0x0 0x55 0xf 0xc0 0x7e rx data. 0xaa 0x33 0xff 0x0 0x55

Hello , I did a little change to the code to transmit hex data. This already works, but I think there is a lack of inserting 0 Tech. As the WIKI shows, with 111111( 6 '1' ) it need to intert a 0 to make it looks like 1111101. Does this module forget to consider this?

wuttem commented 6 years ago

Hey it probably is not considered as this was just used for a very specific use case ... can you reference the wiki page you are talking about ? it is probably not hard to add this behaviour ...