mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 21:48:13 +00:00
docs(core): fix docs indentation and correct a few typos
[no changelog]
This commit is contained in:
parent
ed90f6bd08
commit
4c009539c7
@ -409,7 +409,7 @@ STATIC mp_obj_tuple_t mod_trezorutils_version_obj = {
|
|||||||
/// UI_LAYOUT: str
|
/// UI_LAYOUT: str
|
||||||
/// """UI layout identifier ("tt" for model T, "tr" for models One and R)."""
|
/// """UI layout identifier ("tt" for model T, "tr" for models One and R)."""
|
||||||
/// USE_THP: bool
|
/// USE_THP: bool
|
||||||
/// """Whether the firmware supports Trezor-Host Protocol (version 3)."""
|
/// """Whether the firmware supports Trezor-Host Protocol (version 2)."""
|
||||||
|
|
||||||
STATIC const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = {
|
STATIC const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = {
|
||||||
{MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorutils)},
|
{MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorutils)},
|
||||||
|
@ -1731,7 +1731,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
|
|||||||
/// """Calls drop on contents of the root component."""
|
/// """Calls drop on contents of the root component."""
|
||||||
///
|
///
|
||||||
/// class UiResult:
|
/// class UiResult:
|
||||||
/// """Result of a UI operation."""
|
/// """Result of an UI operation."""
|
||||||
/// pass
|
/// pass
|
||||||
///
|
///
|
||||||
/// mock:global
|
/// mock:global
|
||||||
|
@ -1144,7 +1144,7 @@ class LayoutObj(Generic[T]):
|
|||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
class UiResult:
|
class UiResult:
|
||||||
"""Result of a UI operation."""
|
"""Result of an UI operation."""
|
||||||
pass
|
pass
|
||||||
CONFIRMED: UiResult
|
CONFIRMED: UiResult
|
||||||
CANCELLED: UiResult
|
CANCELLED: UiResult
|
||||||
|
@ -151,4 +151,4 @@ BITCOIN_ONLY: bool
|
|||||||
UI_LAYOUT: str
|
UI_LAYOUT: str
|
||||||
"""UI layout identifier ("tt" for model T, "tr" for models One and R)."""
|
"""UI layout identifier ("tt" for model T, "tr" for models One and R)."""
|
||||||
USE_THP: bool
|
USE_THP: bool
|
||||||
"""Whether the firmware supports Trezor-Host Protocol (version 3)."""
|
"""Whether the firmware supports Trezor-Host Protocol (version 2)."""
|
||||||
|
@ -375,7 +375,7 @@ async def _read_cmd(iface: HID) -> Cmd | None:
|
|||||||
desc_cont = frame_cont()
|
desc_cont = frame_cont()
|
||||||
read = loop.wait(iface.iface_num() | io.POLL_READ)
|
read = loop.wait(iface.iface_num() | io.POLL_READ)
|
||||||
|
|
||||||
# wait for incoming comand indefinitely
|
# wait for incoming command indefinitely
|
||||||
buf = await read
|
buf = await read
|
||||||
while True:
|
while True:
|
||||||
ifrm = overlay_struct(bytearray(buf), desc_init)
|
ifrm = overlay_struct(bytearray(buf), desc_init)
|
||||||
|
@ -29,7 +29,7 @@ if __debug__:
|
|||||||
|
|
||||||
# trezor.pin imports trezor.utils
|
# trezor.pin imports trezor.utils
|
||||||
# We need it as an always-active module because trezor.pin.show_pin_timeout is used
|
# We need it as an always-active module because trezor.pin.show_pin_timeout is used
|
||||||
# as a UI callback for storage, which can be invoked at any time
|
# as an UI callback for storage, which can be invoked at any time
|
||||||
import trezor.pin # noqa: F401
|
import trezor.pin # noqa: F401
|
||||||
|
|
||||||
# === Prepare the USB interfaces first. Do not connect to the host yet.
|
# === Prepare the USB interfaces first. Do not connect to the host yet.
|
||||||
|
Loading…
Reference in New Issue
Block a user