From 004a457ec2eba461b3e5cb35c2aa01e0bc030e97 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 16 Jan 2023 16:15:05 +0100 Subject: [PATCH] Fix typo in comment. --- signal.c | 2 +- view_info.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/signal.c b/signal.c index 69d449cead5..06530cb17bc 100644 --- a/signal.c +++ b/signal.c @@ -265,7 +265,7 @@ void bitmap_copy(uint8_t *d, uint32_t dlen, uint32_t doff, * src: * +--------+--------+--------+ * | 0 | 1 | 2 | - * |hellowod|ld!HELLO|WORLDS!!| <- data to copy + * |hellowor|ld!HELLO|WORLDS!!| <- data to copy * +--------+--------+--------+ * ^ * | diff --git a/view_info.c b/view_info.c index 4fe46c9c24b..9517fdb287b 100644 --- a/view_info.c +++ b/view_info.c @@ -11,12 +11,6 @@ enum { /* Render the view with the detected message information. */ static void render_subview_main(Canvas *const canvas, ProtoViewApp *app) { - if (app->signal_decoded == false) { - canvas_set_font(canvas, FontSecondary); - canvas_draw_str(canvas, 30,36,"No signal decoded"); - return; - } - /* Protocol name as title. */ canvas_set_font(canvas, FontPrimary); uint8_t y = 8, lineheight = 10; @@ -45,6 +39,12 @@ static void render_subview_save(Canvas *const canvas, ProtoViewApp *app) { /* Render the selected subview of this view. */ void render_view_info(Canvas *const canvas, ProtoViewApp *app) { + if (app->signal_decoded == false) { + canvas_set_font(canvas, FontSecondary); + canvas_draw_str(canvas, 30,36,"No signal decoded"); + return; + } + show_available_subviews(canvas,app,SubViewInfoLast); switch(app->current_subview[app->current_view]) { case SubViewInfoMain: render_subview_main(canvas,app); break;