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
This commit is contained in:
SzymonPriv 2023-04-25 12:13:43 +01:00 committed by GitHub
parent 75ccf181f9
commit a86395c550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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) {