EDACS: Add AFS Configuration Display to Ncurses;

This commit is contained in:
lwvmobile 2024-04-06 22:16:47 -04:00
parent 22028b37ed
commit 753286cdf6
2 changed files with 11 additions and 4 deletions

View File

@ -1365,7 +1365,7 @@ usage ()
printf (" -fh Decode only EDACS Standard/ProVoice*\n");
printf (" -fH Decode only EDACS Standard/ProVoice with ESK 0xA0*\n");
printf (" -fh344 Decode only EDACS Standard/ProVoice and set AFS to 344 or custom 11-bit scheme*\n");
printf (" -fH434 Decode only EDACS Standard/ProVoice and set AFS to 344 or custom 11-bit scheme with ESK 0xA0*\n");
printf (" -fH434 Decode only EDACS Standard/ProVoice and set AFS to 344 or custom 11-bit scheme with ESK 0xA0*\n");
printf (" -fe Decode only EDACS EA/ProVoice*\n");
printf (" -fE Decode only EDACS EA/ProVoice with ESK 0xA0*\n");
printf (" -fm Decode only dPMR*\n");

View File

@ -2578,8 +2578,11 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
}
printw (" Mode (S);");
printw(" ESK Mask: %02X", state->esk_mask);
printw (" (A); ");
printw(" ESK: %02X", state->esk_mask);
printw (" (A);");
if (state->ea_mode == 0)
printw (" AFS: %d:%d:%d;", state->edacs_a_bits, state->edacs_f_bits, state->edacs_s_bits);
attron(COLOR_PAIR(4));
printw ("\n");
@ -2605,8 +2608,12 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
}
printw (" Mode (S);");
printw(" ESK Mask: %02X", state->esk_mask);
printw(" ESK: %02X", state->esk_mask);
printw (" (A) Toggle; ");
if (state->ea_mode == 0)
printw (" AFS: %d:%d:%d;", state->edacs_a_bits, state->edacs_f_bits, state->edacs_s_bits);
printw ("\n");
}
#endif