mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 21:48:13 +00:00
fix(core): fix T2B1 display orientation south
This commit is contained in:
parent
59961984c3
commit
6667f96911
1
core/.changelog.d/3990.fixed
Normal file
1
core/.changelog.d/3990.fixed
Normal file
@ -0,0 +1 @@
|
||||
[T2B1] Fix display orientation "south"
|
@ -255,8 +255,8 @@ static inline uint8_t reverse_byte(uint8_t b) {
|
||||
static void rotate_oled_buffer(void) {
|
||||
for (int i = 0; i < OLED_BUFSIZE / 2; i++) {
|
||||
uint8_t b = OLED_BUFFER[i];
|
||||
OLED_BUFFER[i] = reverse_byte(OLED_BUFFER[OLED_BUFSIZE - i]);
|
||||
OLED_BUFFER[OLED_BUFSIZE - i] = reverse_byte(b);
|
||||
OLED_BUFFER[i] = reverse_byte(OLED_BUFFER[OLED_BUFSIZE - i - 1]);
|
||||
OLED_BUFFER[OLED_BUFSIZE - i - 1] = reverse_byte(b);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user