@robotical/webapp-types 3.7.26 → 3.7.28

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.
@@ -652,7 +652,7 @@ var ApplicationManager = /** @class */ (function () {
652
652
  raftFoundSubscriptionHelper().subscribe(function (_a) {
653
653
  var discoveredDevice = _a.discoveredDevice;
654
654
  return __awaiter(_this, void 0, void 0, function () {
655
- var newRaft;
655
+ var newRaft, oldColours;
656
656
  return __generator(this, function (_b) {
657
657
  switch (_b.label) {
658
658
  case 0:
@@ -660,21 +660,27 @@ var ApplicationManager = /** @class */ (function () {
660
660
  if (foundRICs.length > 0) {
661
661
  return [2 /*return*/];
662
662
  }
663
- if (!discoveredDevice._serviceUUIDs.includes(uuids[0])) return [3 /*break*/, 2];
663
+ if (!discoveredDevice._serviceUUIDs.includes(uuids[0])) return [3 /*break*/, 4];
664
664
  foundRICs.push(discoveredDevice);
665
665
  return [4 /*yield*/, this.selectRaft(discoveredDevice, RaftConnectionMethod.PHONE_BLE)];
666
666
  case 1:
667
667
  newRaft = _b.sent();
668
- if (newRaft) {
669
- this.connectedRaftContextMethods.addConnectedRaft({ id: newRaft.id, type: newRaft.type, name: newRaft.getFriendlyName() || "", isSelected: true });
670
- afterRaftConnectedCb(newRaft);
671
- raftFoundSubscriptionHelper().unsubscribe();
672
- }
673
- else {
674
- foundRICs = [];
675
- }
676
- _b.label = 2;
677
- case 2: return [2 /*return*/];
668
+ if (!newRaft) return [3 /*break*/, 3];
669
+ this.connectedRaftContextMethods.addConnectedRaft({ id: newRaft.id, type: newRaft.type, name: newRaft.getFriendlyName() || "", isSelected: true });
670
+ afterRaftConnectedCb(newRaft);
671
+ oldColours = newRaft._ledLcdColours;
672
+ newRaft._ledLcdColours = [];
673
+ return [4 /*yield*/, newRaft.verifyRaft()];
674
+ case 2:
675
+ _b.sent();
676
+ newRaft._ledLcdColours = oldColours;
677
+ newRaft.stopVerifyingRaft(true);
678
+ raftFoundSubscriptionHelper().unsubscribe();
679
+ return [3 /*break*/, 4];
680
+ case 3:
681
+ foundRICs = [];
682
+ _b.label = 4;
683
+ case 4: return [2 /*return*/];
678
684
  }
679
685
  });
680
686
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.7.26",
3
+ "version": "3.7.28",
4
4
  "description": "Type definitions for the Application Manager",
5
5
  "main": "dist/application-manager.d.ts",
6
6
  "types": "dist/application-manager.d.ts",