Skip to content

Commit

Permalink
Merge pull request #840 from DL2MF/master
Browse files Browse the repository at this point in the history
Destination callsign added to statusline
  • Loading branch information
travisgoodspeed authored Jan 2, 2018
2 parents 215f713 + 4009317 commit d595cb9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions applet/src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ void draw_alt_statusline()
}

user_t usr;
user_t dst;
src = rst_src;

if( src == 0 ) {
Expand All @@ -512,9 +513,17 @@ void draw_alt_statusline()
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "TA: %s", talkerAlias.text);
} else { // 2017-02-18 otherwise show lastheard in status line
if( usr_find_by_dmrid(&usr, src) == 0 ) {
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "lh:%d->%d %c", src, rst_dst, mode);
if( usr_find_by_dmrid(&usr, rst_dst) != 0 ) {
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "lh:%d->%s %c", src, usr.callsign, mode);
} else {
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "lh:%d->%d %c", src, rst_dst, mode);
}
} else {
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "lh:%s->%d %c", usr.callsign, rst_dst, mode);
if( usr_find_by_dmrid(&dst, rst_dst) != 0 ) {
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "lh:%s->%s %c", usr.callsign, dst.callsign, mode);
} else {
gfx_printf_pos2(RX_POPUP_X_START, 96, 157, "lh:%s->%d %c", usr.callsign, rst_dst, mode);
}
}
}
}
Expand Down

0 comments on commit d595cb9

Please sign in to comment.