@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*/,
|
|
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
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
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
|
});
|