abandonware / noble

A Node.js BLE (Bluetooth Low Energy) central module : Community maintained
https://libraries.io/npm/@abandonware%2Fnoble
MIT License
538 stars 162 forks source link

Wrap Gap Debug in Conditional Check #301

Closed ColeMurray closed 1 year ago

ColeMurray commented 1 year ago

To avoid JSON.stringify being called on each advertising packet, even when not in debug mode, wrap the function in a conditional to check if debugging is enabled.

rzr commented 1 year ago

review and test welcome