diff --git a/src/DroneConnection.js b/src/DroneConnection.js index b1176aa8..55a57931 100644 --- a/src/DroneConnection.js +++ b/src/DroneConnection.js @@ -102,7 +102,7 @@ class DroneConnection extends EventEmitter { } if (['connecting', 'connected'].includes(peripheral.state)) { - Logger.info("Connected") + await this.noble.stopScanningAsync(); } else { Logger.info("Something went wrong: " + peripheral.state)