Skip to content

Commit

Permalink
Fix typo in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jan 16, 2023
1 parent 56eb528 commit 004a457
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* +--------+--------+--------+
* ^
* |
Expand Down
12 changes: 6 additions & 6 deletions view_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 004a457

Please sign in to comment.