diondokter / at-commands

Rust project for building and parsing at commands
Apache License 2.0
33 stars 5 forks source link

Accept '+' for int parameters #5

Closed barafael closed 3 years ago

barafael commented 3 years ago

Hi, I'm using at-commands for my hc-12 driver. This driver reports transmission power as dBm. This can be positive or negative. Negative works fine, but positive is reported as "+n". This patch adds support for parsing that number. Let me know if you see something I can improve upon :)

diondokter commented 3 years ago

Hey, that looks like a great addition! I'll try to take a closer look tomorrow 🙂

diondokter commented 3 years ago

Thanks for the contribution! I've released this and a little bit of cleanup as 0.4.1 :)