incyclist-services 1.3.49 → 1.3.50

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.
@@ -17,6 +17,7 @@ export declare class DevicePairingService extends IncyclistService {
17
17
  protected configuration: DeviceConfigurationService;
18
18
  protected access: DeviceAccessService;
19
19
  protected rideService: DeviceRideService;
20
+ protected pairingConfirmed: boolean;
20
21
  protected settings: PairingSettings;
21
22
  protected state: InternalPairingState;
22
23
  protected deviceSelectState: DeviceSelectState | null;
@@ -43,6 +44,7 @@ export declare class DevicePairingService extends IncyclistService {
43
44
  unselectDevices(capability: IncyclistCapability): Promise<void>;
44
45
  changeInterfaceSettings(name: string, settings: InterfaceSetting): Promise<void>;
45
46
  isReadyToStart(): boolean;
47
+ setReadyToStart(): void;
46
48
  protected restartPair(): Promise<void>;
47
49
  protected restart(): Promise<void>;
48
50
  protected _stop(): Promise<void>;
@@ -39,6 +39,7 @@ class DevicePairingService extends service_2.IncyclistService {
39
39
  }
40
40
  constructor(services) {
41
41
  super('Pairing');
42
+ this.pairingConfirmed = false;
42
43
  this.settings = {};
43
44
  this.state = { initialized: false, deleted: [] };
44
45
  this.deviceSelectState = null;
@@ -59,6 +60,7 @@ class DevicePairingService extends service_2.IncyclistService {
59
60
  }
60
61
  start(onStateChanged) {
61
62
  return __awaiter(this, void 0, void 0, function* () {
63
+ this.pairingConfirmed = false;
62
64
  if (this.state.stopped) {
63
65
  this.state.stopped = false;
64
66
  this.state.deleted = [];
@@ -251,8 +253,10 @@ class DevicePairingService extends service_2.IncyclistService {
251
253
  });
252
254
  }
253
255
  isReadyToStart() {
254
- this.checkCanStart();
255
- return this.state.canStartRide;
256
+ return this.pairingConfirmed;
257
+ }
258
+ setReadyToStart() {
259
+ this.pairingConfirmed = true;
256
260
  }
257
261
  restartPair() {
258
262
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.3.49",
3
+ "version": "1.3.50",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.26"
6
6
  },