-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/LIVE-8535: new get-latest-available-firmware action (#4042)
Created a getLatestAvailableFirmwareAction and a React adapter with a hook: useGetLatestAvailableFirmware The need came from having a version of a "get latest available firmware" function that is resilient to Transport race conditions (by catching and retrying). Also added: - unit tests on getLatestAvailableFirmwareAction: with a test on the retry mechanism, mocking only the "inner" definition of the task - a new error (only used in the device SDK): UnresponsiveDeviceError - propagate the following informations: - does the current error that occurred in a task triggered an attemp to retry the task ? - what kind of locked device error occurred: 0x5515 (LockedDeviceError) or device "unresponsive" And chore/fixed: - rename filename for hook useGetDeviceInfo in device SDK - how locked device errors are handled in the LLM firmware update
- Loading branch information
1 parent
aba777d
commit c7c484a
Showing
20 changed files
with
676 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"live-mobile": patch | ||
--- | ||
|
||
fix: locked device errors handling in LLM new firmwre update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ledgerhq/errors": patch | ||
--- | ||
|
||
feat: new error (only used in the device SDK) `UnresponsiveDeviceError` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"@ledgerhq/live-common": patch | ||
--- | ||
|
||
feat: new get latest available firmware action and hook | ||
|
||
Created a getLatestAvailableFirmwareAction and a React adapter with a hook: useGetLatestAvailableFirmware | ||
The need came from having a version of a "get latest available firmware" function that is resilient | ||
to Transport race conditions (by catching and retrying). | ||
|
||
Implemented using the new device SDK paradigm. | ||
|
||
Also now propagating the following informations: | ||
|
||
- does the current error that occurred in a task triggered an attempt to retry the task ? | ||
- what kind of locked device error occurred: 0x5515 (LockedDeviceError) or device "unresponsive" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c7c484a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
live-common-tools – ./
live-common-tools-git-develop-ledgerhq.vercel.app
ledger-live.vercel.app
ledger-live-tools.vercel.app
live-common-tools-ledgerhq.vercel.app
live.ledger.tools