From 540d3ebaabaf6f638b5a6f4b2c560203dafef4b2 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 3 May 2022 17:09:36 +0200 Subject: [PATCH] feat(legacy): report EMULATOR vendor in legacy --- legacy/firmware/fsm_msg_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/firmware/fsm_msg_common.h b/legacy/firmware/fsm_msg_common.h index c4e2fcf27..594ae34db 100644 --- a/legacy/firmware/fsm_msg_common.h +++ b/legacy/firmware/fsm_msg_common.h @@ -19,6 +19,9 @@ bool get_features(Features *resp) { resp->has_fw_vendor = true; +#if EMULATOR + strlcpy(resp->fw_vendor, "EMULATOR", sizeof(resp->fw_vendor)); +#else const image_header *hdr = (const image_header *)FLASH_PTR(FLASH_FWHEADER_START); if (SIG_OK == signatures_new_ok(hdr, NULL)) { @@ -26,6 +29,7 @@ bool get_features(Features *resp) { } else { strlcpy(resp->fw_vendor, "UNSAFE, DO NOT USE!", sizeof(resp->fw_vendor)); } +#endif resp->has_vendor = true; strlcpy(resp->vendor, "trezor.io", sizeof(resp->vendor)); resp->major_version = VERSION_MAJOR;