Skip to content

Commit 164791b

Browse files
committed
🐛 (common): Charon onboarding flags are not available in bootloader mode
1 parent f92d1e2 commit 164791b

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.changeset/mean-pens-look.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"ledger-live-desktop": patch
3+
"live-mobile": patch
4+
"@ledgerhq/live-common": patch
5+
---
6+
7+
Charon onboarding flags are not available in bootloader mode

libs/ledger-live-common/src/hw/connectManager.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ const cmd = (transport: Transport, { request }: Input): Observable<ConnectManage
6464
throw new DeviceNotOnboarded();
6565
}
6666

67+
if (deviceInfo.isBootloader) {
68+
return of({
69+
type: "bootloader",
70+
deviceInfo,
71+
} as ConnectManagerEvent);
72+
}
73+
74+
if (deviceInfo.isOSU) {
75+
return of({
76+
type: "osu",
77+
deviceInfo,
78+
} as ConnectManagerEvent);
79+
}
80+
6781
if (
6882
isCharonSupported(
6983
deviceInfo.seVersion ?? "",
@@ -79,20 +93,6 @@ const cmd = (transport: Transport, { request }: Input): Observable<ConnectManage
7993
}
8094
}
8195

82-
if (deviceInfo.isBootloader) {
83-
return of({
84-
type: "bootloader",
85-
deviceInfo,
86-
} as ConnectManagerEvent);
87-
}
88-
89-
if (deviceInfo.isOSU) {
90-
return of({
91-
type: "osu",
92-
deviceInfo,
93-
} as ConnectManagerEvent);
94-
}
95-
9696
return concat(
9797
of({
9898
type: "listingApps",

0 commit comments

Comments
 (0)