Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed May 27, 2021
2 parents 3a56539 + b5b608a commit 5e82caf
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 46 deletions.
8 changes: 4 additions & 4 deletions lib/bindings/hci/Adapter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bindings/hci/Adapter.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/bindings/hci/misc/Hci.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions lib/bindings/hci/misc/Hci.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bindings/hci/misc/Hci.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/bindings/mac/Adapter.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/bindings/mac/Adapter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bindings/mac/Adapter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/bindings/hci/Adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { HciGattLocal } from './gatt';
import { Gap, Hci } from './misc';
import { HciPeripheral } from './Peripheral';

const SCAN_ENABLE_TIMEOUT = 1000;
const ADVERTISING_ENABLE_TIMEOUT = 1000;
const SCAN_ENABLE_TIMEOUT = 5000;
const ADVERTISING_ENABLE_TIMEOUT = 5000;

interface Advertisement {
localName: string;
Expand Down Expand Up @@ -300,7 +300,7 @@ export class HciAdapter extends Adapter {
this.scanEnableTimer = setTimeout(() => enableScanning(), SCAN_ENABLE_TIMEOUT);
});
};
enableScanning();
this.scanEnableTimer = setTimeout(() => enableScanning(), SCAN_ENABLE_TIMEOUT);
}
};

Expand All @@ -318,7 +318,7 @@ export class HciAdapter extends Adapter {
this.advertisingEnableTimer = setTimeout(() => enableAdvertising(), ADVERTISING_ENABLE_TIMEOUT);
});
};
enableAdvertising();
this.advertisingEnableTimer = setTimeout(() => enableAdvertising(), ADVERTISING_ENABLE_TIMEOUT);
}
};

Expand Down
Loading

0 comments on commit 5e82caf

Please sign in to comment.