Skip to content

Commit 195382b

Browse files
committed
chore(core): return N4W1 in Features.capabilities
[no changelog]
1 parent 866e0ed commit 195382b

6 files changed

Lines changed: 28 additions & 14 deletions

File tree

common/protob/messages-management.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ message Features {
189189
Capability_BLE = 22 [(bitcoin_only) = true]; // Bluetooth Low Energy
190190
Capability_NFC = 23 [(bitcoin_only) = true]; // Near Field Communications
191191
Capability_Tron = 24;
192+
Capability_N4W1 = 25 [(bitcoin_only) = true];
192193
}
193194
}
194195

core/src/apps/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ def get_features() -> Features:
162162
if utils.INTERNAL_MODEL == "T3W1": # TODO utils.USE_NFC
163163
f.capabilities.append(Capability.NFC)
164164

165+
if utils.USE_N4W1:
166+
f.capabilities.append(Capability.N4W1)
167+
165168
# Only some models are capable of SD card
166169
if utils.USE_SD_CARD:
167170
from trezor import sdcard

core/src/trezor/enums/Capability.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/trezor/enums/__init__.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/src/trezorlib/messages.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/trezor-client/src/protos/generated/messages_management.rs

Lines changed: 21 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)