Skip to content

Commit

Permalink
feat: thread broadcast screen refresh improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Aug 29, 2024
1 parent 59284d7 commit 23123a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "oled_screen.h"

void open_thread_screens_display_broadcast_mode(uint8_t ch) {
oled_screen_clear();
oled_screen_display_text(" BroadCast Mode ", 0, 0, OLED_DISPLAY_NORMAL);
char* str = (char*) malloc(18);
sprintf(str, " Channel %d ", ch);
Expand All @@ -15,7 +16,7 @@ void open_thread_screens_show_new_message(char* msg) {
char* str = (char*) malloc(18);
sprintf(str, "%s", msg);
oled_screen_clear_line(0, 4, OLED_DISPLAY_NORMAL);
oled_screen_display_text(str, 0, 4, OLED_DISPLAY_NORMAL);
oled_screen_display_text_center(str, 4, OLED_DISPLAY_NORMAL);
free(str);
}

Expand Down

0 comments on commit 23123a4

Please sign in to comment.