From a86395c550bb3761abccc3c409b7bde231437392 Mon Sep 17 00:00:00 2001 From: SzymonPriv Date: Tue, 25 Apr 2023 12:13:43 +0100 Subject: [PATCH] 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 --- src/direwolf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/direwolf.c b/src/direwolf.c index 6215e96..39a9a9c 100644 --- a/src/direwolf.c +++ b/src/direwolf.c @@ -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) {