Skip to content

Commit

Permalink
Version 5.2.1 release (#217)
Browse files Browse the repository at this point in the history
- Bump version to 5.2.1
- Updated version references in firmware, middleware and unit tests
- Updated CHANGELOG
  • Loading branch information
amendelzon authored Nov 14, 2024
1 parent 626ae80 commit 82b5054
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [5.2.1] - 14/11/2024

### Fixes

- Removed compilation products from repository
- Fixed failing middleware docker image build

## [5.2.0] - 09/09/2024

### Features/enhancements
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/ledger/ui/src/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// Version and patchlevel
#define VERSION_MAJOR 0x05
#define VERSION_MINOR 0x02
#define VERSION_PATCH 0x00
#define VERSION_PATCH 0x01

#endif // __DEFS_H
4 changes: 2 additions & 2 deletions firmware/src/ledger/ui/test/onboard/test_onboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,11 @@ void test_is_onboarded() {

G_device_onboarded = true;
assert(5 == is_onboarded());
ASSERT_APDU("\x80\x01\x05\x02\x00");
ASSERT_APDU("\x80\x01\x05\x02\x01");

G_device_onboarded = false;
assert(5 == is_onboarded());
ASSERT_APDU("\x80\x00\x05\x02\x00");
ASSERT_APDU("\x80\x00\x05\x02\x01");
}

int main() {
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/powhsm/src/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
// Version and patchlevel
#define VERSION_MAJOR 0x05
#define VERSION_MINOR 0x02
#define VERSION_PATCH 0x00
#define VERSION_PATCH 0x01

#endif // __DEFS_H
4 changes: 2 additions & 2 deletions middleware/ledger/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

class HSM2ProtocolLedger(HSM2Protocol):
# Current manager supported versions for HSM UI and HSM SIGNER (<=)
UI_VERSION = HSM2FirmwareVersion(5, 2, 0)
APP_VERSION = HSM2FirmwareVersion(5, 2, 0)
UI_VERSION = HSM2FirmwareVersion(5, 2, 1)
APP_VERSION = HSM2FirmwareVersion(5, 2, 1)

# Amount of time to wait to make sure the app is opened
OPEN_APP_WAIT = 1 # second
Expand Down
2 changes: 1 addition & 1 deletion middleware/tests/ledger/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def setUp(self):
self.dongle.disconnect = Mock()
self.dongle.is_onboarded = Mock(return_value=True)
self.dongle.get_current_mode = Mock(return_value=HSM2Dongle.MODE.SIGNER)
self.dongle.get_version = Mock(return_value=HSM2FirmwareVersion(5, 2, 0))
self.dongle.get_version = Mock(return_value=HSM2FirmwareVersion(5, 2, 1))
self.dongle.get_signer_parameters = Mock(return_value=Mock(
min_required_difficulty=123))
self.protocol = HSM2ProtocolLedger(self.pin, self.dongle)
Expand Down

0 comments on commit 82b5054

Please sign in to comment.