Skip to content

Commit a86395c

Browse files
authored
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
1 parent 75ccf18 commit a86395c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/direwolf.c

+10
Original file line numberDiff line numberDiff line change
@@ -1324,9 +1324,19 @@ void app_process_rec_packet (int chan, int subchan, int slice, packet_t pp, alev
13241324
else {
13251325
if (ax25_is_aprs(pp)) {
13261326
text_color_set(DW_COLOR_REC);
1327+
dw_printf("[APRS] ");
13271328
}
13281329
else {
13291330
text_color_set(DW_COLOR_DECODED);
1331+
if (is_fx25) { // really means 'FEC enabled'
1332+
if (X_fx25_xmit_enable > 0) {
1333+
dw_printf("[FX.25] ");
1334+
} else {
1335+
dw_printf("[IL2P] ");
1336+
}
1337+
} else {
1338+
dw_printf("[AX.25] ");
1339+
}
13301340
}
13311341

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

0 commit comments

Comments
 (0)