Skip to content

Commit

Permalink
Stop scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mechazawa committed Nov 26, 2023
1 parent b340ef2 commit fb65be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DroneConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fb65be3

Please sign in to comment.