Skip to content

Commit

Permalink
fix: clear oled buffer in general screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Aug 30, 2024
1 parent 090acbc commit 3a07d84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firmware/main/general/general_screens.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ static void general_screen_display_scrolling() {
(i - scrolling_option) + (ITEMOFFSET + screen_title),
OLED_DISPLAY_NORMAL);
}
oled_screen_display_show();
}

void general_register_menu(const general_menu_t* ctx) {
Expand Down Expand Up @@ -214,9 +215,11 @@ void genera_screen_display_card_information(char* title, char* body) {
page++;
if (strlen(body) > MAX_LINE_CHAR) {
oled_screen_display_text_splited(body, &page, OLED_DISPLAY_NORMAL);
oled_screen_display_show();
return;
}
oled_screen_display_text_center(body, page, OLED_DISPLAY_NORMAL);
oled_screen_display_show();
}

void genera_screen_display_notify_information(char* title, char* body) {
Expand All @@ -227,9 +230,11 @@ void genera_screen_display_notify_information(char* title, char* body) {
page++;
if (strlen(body) > MAX_LINE_CHAR) {
oled_screen_display_text_splited(body, &page, OLED_DISPLAY_NORMAL);
oled_screen_display_show();
return;
}
oled_screen_display_text_center(body, page, OLED_DISPLAY_NORMAL);
oled_screen_display_show();
}

void general_screen_display_menu(uint16_t current_option) {
Expand All @@ -256,4 +261,5 @@ void general_screen_display_menu(uint16_t current_option) {
i + ITEMOFFSET, OLED_DISPLAY_NORMAL);
}
}
oled_screen_display_show();
}

0 comments on commit 3a07d84

Please sign in to comment.