mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-23 07:58:09 +00:00
Fit 21 characters per line
This commit is contained in:
parent
b9b36e0768
commit
63c6f95400
@ -486,7 +486,7 @@ void layoutAddress(const char *address, const char *desc, bool qrcode, bool igno
|
||||
}
|
||||
}
|
||||
} else {
|
||||
uint32_t rowlen = (addrlen - 1) / (addrlen <= 40 ? 2 : addrlen <= 60 ? 3 : 4) + 1;
|
||||
uint32_t rowlen = (addrlen - 1) / (addrlen <= 42 ? 2 : addrlen <= 63 ? 3 : 4) + 1;
|
||||
const char **str = split_message((const uint8_t *)address, addrlen, rowlen);
|
||||
if (desc) {
|
||||
oledDrawString(0, 0 * 9, desc, FONT_STANDARD);
|
||||
|
Loading…
Reference in New Issue
Block a user