incyclist-services 1.3.46 → 1.3.48

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.
@@ -749,15 +749,7 @@ class DevicePairingService extends service_2.IncyclistService {
749
749
  checkCanStart() {
750
750
  try {
751
751
  const prev = this.state.canStartRide;
752
- const configReadyToRide = this.configuration.canStartRide();
753
- if (!configReadyToRide) {
754
- this.state.canStartRide = false;
755
- return false;
756
- }
757
- const control = this.getCapability(incyclist_devices_1.IncyclistCapability.Control);
758
- const power = this.getCapability(incyclist_devices_1.IncyclistCapability.Power);
759
- const canStartRide = ((control === null || control === void 0 ? void 0 : control.connectState) === 'connected' || (power === null || power === void 0 ? void 0 : power.connectState) === 'connected');
760
- this.state.canStartRide = canStartRide;
752
+ const canStartRide = this.checkPairingSuccess();
761
753
  if (canStartRide !== prev) {
762
754
  this.emitStartStatus();
763
755
  }
@@ -774,6 +766,7 @@ class DevicePairingService extends service_2.IncyclistService {
774
766
  const control = this.getCapability(incyclist_devices_1.IncyclistCapability.Control);
775
767
  const power = this.getCapability(incyclist_devices_1.IncyclistCapability.Power);
776
768
  const success = ((control === null || control === void 0 ? void 0 : control.connectState) === 'connected' || (power === null || power === void 0 ? void 0 : power.connectState) === 'connected');
769
+ this.state.canStartRide = success;
777
770
  return success;
778
771
  }
779
772
  stopScanning() {
@@ -280,10 +280,14 @@ class RouteCard extends base_1.BaseCard {
280
280
  }
281
281
  }
282
282
  adjustStartPosAvi(settings) {
283
+ var _a, _b;
283
284
  try {
284
285
  if (this.route.description.videoFormat === 'avi') {
285
286
  settings.startPos = 0;
286
287
  }
288
+ if (((_b = (_a = this.route.details) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.format) === 'avi') {
289
+ settings.startPos = 0;
290
+ }
287
291
  }
288
292
  catch (err) {
289
293
  this.logError(err, 'adjustStartPosAvi');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.3.46",
3
+ "version": "1.3.48",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.26"
6
6
  },