Skip to content

Commit 00dc761

Browse files
feat: Get firmware variant with device info
1 parent 9c4f644 commit 00dc761

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

apps/manager_app/get_device_info.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ static bool get_firmware_version(common_version_t *firmware_version) {
122122
return true;
123123
}
124124

125+
static common_firmware_variant_t get_firmware_variant() {
126+
#ifndef BTC_ONLY_BUILD
127+
return COMMON_MULTI_COIN;
128+
#else
129+
return COMMON_BTC_ONLY;
130+
#endif
131+
}
132+
125133
static manager_get_device_info_response_t get_device_info(void) {
126134
manager_get_device_info_response_t device_info =
127135
MANAGER_GET_DEVICE_INFO_RESPONSE_INIT_ZERO;
@@ -138,6 +146,7 @@ static manager_get_device_info_response_t get_device_info(void) {
138146
manager_get_device_info_result_response_t *result = &device_info.result;
139147
result->has_firmware_version =
140148
get_firmware_version(&result->firmware_version);
149+
result->firmware_variant = get_firmware_variant();
141150
memcpy(result->device_serial, atecc_data.device_serial, DEVICE_SERIAL_SIZE);
142151
result->is_authenticated = is_device_authenticated();
143152
result->is_initial =

0 commit comments

Comments
 (0)