firmware icon indicating copy to clipboard operation
firmware copied to clipboard

add features return information.

Open lihuanhuan opened this issue 1 year ago • 1 comments

lihuanhuan avatar Mar 14 '24 03:03 lihuanhuan

PR Summary

  • Addition of New Optional Fields and Enumerator The common/protob/messages-management.proto file was updated with new optional fields associated with the OneKey device state and build information. An enum, OneKeySEState, was also introduced into the core/src/trezor/enums/OneKeySEState.py file.

  • Modification of Enum Constant Value The value assigned to the MessageType_OnekeyGetFeatures enum constant was altered in two files: common/protob/messages.proto and core/src/trezor/enums/MessageType.py.

  • New File Creation A new file core/src/trezor/enums/OneKeySEState.py was created.

  • Additional Enum in Init The core/src/trezor/enums/__init__.py file was modified to include the enumeration OneKeySEState.

  • Addition and Modification of Functions Functions related to the Features class and its fields were either added or altered in both the core/src/trezor/messages.py file and the python/src/trezorlib/messages.py file.

  • Change in MESSAGE_WIRE_TYPE Values For functions RebootToBoardloader and DeviceEraseSector in the python/src/trezorlib/messages.py file, MESSAGE_WIRE_TYPE values were reset to None.

The PR aims at improving device state tracking, simplifying message feature fetching, and enhancing data handling within the Features class. Moreover, it ensures updated MESSAGE_WIRE_TYPE values for more appropriate handling of specified functions.

what-the-diff[bot] avatar Mar 14 '24 03:03 what-the-diff[bot]