incyclist-devices 3.0.36 → 3.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,7 +210,7 @@ class BleAdapter extends adpater_js_1.default {
210
210
  const ble = this.getBle();
211
211
  ble.once('disconnect-done', this.onDisconnectDoneHandler);
212
212
  this.startTask = new task_js_1.InteruptableTask(this.startAdapter(startProps), {
213
- timeout: startProps?.timeout,
213
+ timeout: startProps?.timeout ?? this.getDefaultStartupTimeout(),
214
214
  name: 'start',
215
215
  errorOnTimeout: false,
216
216
  log: this.logEvent.bind(this)
@@ -205,7 +205,7 @@ export default class BleAdapter extends IncyclistDevice {
205
205
  const ble = this.getBle();
206
206
  ble.once('disconnect-done', this.onDisconnectDoneHandler);
207
207
  this.startTask = new InteruptableTask(this.startAdapter(startProps), {
208
- timeout: startProps?.timeout,
208
+ timeout: startProps?.timeout ?? this.getDefaultStartupTimeout(),
209
209
  name: 'start',
210
210
  errorOnTimeout: false,
211
211
  log: this.logEvent.bind(this)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "3.0.36",
3
+ "version": "3.0.37",
4
4
  "scripts": {
5
5
  "lint": "eslint . --ext .ts",
6
6
  "build": "npm run build:esm && npm run build:cjs",