kmark / Bee

The simple DigiMesh XBee library for Arduino
Other
11 stars 9 forks source link

Packet Size being escaped #6

Open lpercifield opened 7 years ago

lpercifield commented 7 years ago

In testing with this library, there was a case where an Xbee packet was sent where the packet size byte was escaped. Looks like the simple hack is to add the isEscaped logic to the packet size switch.

lpercifield commented 7 years ago

https://github.com/lpercifield/Bee/commit/0151e379987014112546a5b47ef79d9b640e1de1

kmark commented 7 years ago

Thanks for this. I remember figuring out exactly how escaping worked (and when it wasn't necessary) took a lot of time and trial/error. Looks like I missed some things. If you send a PR I'll accept as-is since I'm not too worried about the code quality of this implementation at this point.