diff --git a/examples/companion_radio/ui-new/FullscreenMsgView.h b/examples/companion_radio/ui-new/FullscreenMsgView.h index 17e8e880..d66d759e 100644 --- a/examples/companion_radio/ui-new/FullscreenMsgView.h +++ b/examples/companion_radio/ui-new/FullscreenMsgView.h @@ -65,11 +65,11 @@ struct FullscreenMsgView { display.setCursor(display.width() - 6, FS_START_Y + (FS_VISIBLE - 1) * FS_LINE_H); display.print("v"); } - if (has_prev) { + if (has_next) { display.setCursor(0, 56); display.print("<"); } - if (has_next) { + if (has_prev) { display.setCursor(display.width() - 6, 56); display.print(">"); } @@ -79,8 +79,8 @@ struct FullscreenMsgView { Result handleInput(char c) { if (c == KEY_UP) { if (scroll > 0) scroll--; return NONE; } if (c == KEY_DOWN) { scroll++; return NONE; } - if (c == KEY_LEFT) return PREV; - if (c == KEY_RIGHT) return NEXT; + if (c == KEY_LEFT) return NEXT; + if (c == KEY_RIGHT) return PREV; if (c == KEY_ENTER || c == KEY_CANCEL) return CLOSE; return NONE; } diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index edabeaf5..372c20fd 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -1203,7 +1203,7 @@ public: ChannelDetails ch; the_mesh.getChannel(_sel_channel_idx, ch); char title[24]; - snprintf(title, sizeof(title), "#%.21s", ch.name); + snprintf(title, sizeof(title), "%.23s", ch.name); display.drawTextCentered(display.width()/2, 0, title); display.fillRect(0, 9, display.width(), 1); @@ -1289,7 +1289,7 @@ public: if (_sending_to_channel) { ChannelDetails ch; the_mesh.getChannel(_sel_channel_idx, ch); - snprintf(title, sizeof(title), "#%.21s", ch.name); + snprintf(title, sizeof(title), "%.23s", ch.name); } else { snprintf(title, sizeof(title), "TO:%.14s", _sel_contact.name); }