1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 05:58:09 +00:00

fix(core): fix T2B1 display orientation south

This commit is contained in:
tychovrahe 2024-07-03 21:14:47 +02:00 committed by TychoVrahe
parent 59961984c3
commit 6667f96911
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
[T2B1] Fix display orientation "south"

View File

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