Skip to content

log how a packet was decoded #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
log how a packet was decoded
Simple changes to modify the log messages to say whether a packet was decoded as APRS, FX.25, IL2P or AX.25.  This is useful when transitioning from AX.25 to IL2P (as the OARC packet network is doing currently), as it makes it obvious why a given station isn't able to say access a BPQ node ;-)

This should probably be hidden in a command line parameter, I'm easy either way, this is just a suggestion
  • Loading branch information
SzymonPriv authored Apr 25, 2023
commit a86395c550bb3761abccc3c409b7bde231437392
10 changes: 10 additions & 0 deletions src/direwolf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1324,9 +1324,19 @@ void app_process_rec_packet (int chan, int subchan, int slice, packet_t pp, alev
else {
if (ax25_is_aprs(pp)) {
text_color_set(DW_COLOR_REC);
dw_printf("[APRS] ");
}
else {
text_color_set(DW_COLOR_DECODED);
if (is_fx25) { // really means 'FEC enabled'
if (X_fx25_xmit_enable > 0) {
dw_printf("[FX.25] ");
} else {
dw_printf("[IL2P] ");
}
} else {
dw_printf("[AX.25] ");
}
}

if (audio_config.achan[chan].num_subchan > 1 && audio_config.achan[chan].num_slicers == 1) {
Expand Down