1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

Fit 21 characters per line

This commit is contained in:
Jochen Hoenicke 2018-02-06 22:57:02 +01:00 committed by Pavol Rusnak
parent b9b36e0768
commit 63c6f95400
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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);