meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3k stars 719 forks source link

5 digit bluetooth passkey through serial debug #126

Closed Dafeman closed 4 years ago

Dafeman commented 4 years ago

Using the build "firmware-tbeam-US-0.6.2" with no screen connected, through the serial debug I got "onPassKeyNotify 71714". I'm guessing this should be padded with a 0 to make the minimum 6 digits required?

Dafeman commented 4 years ago

Just had a 5 digit passkey again and can confirm that a leading 0 worked.

geeksville commented 4 years ago

oops thanks!

geeksville commented 4 years ago

I'll fix next week unless someone gets to it first and changes the %d in screen.cpp to %06d. and sends in a PR.

geeksville commented 4 years ago

fixed by @dafeman!