Fix Compiler Warning, minor tweaks

Fix Compiler Warning, minor tweaks to NCurses view and information logging
This commit is contained in:
lwvmobile
2022-03-13 20:32:32 -04:00
committed by GitHub
parent 6afb0d718f
commit 5ee669aa18
4 changed files with 5 additions and 7 deletions

View File

@@ -376,7 +376,7 @@ processLDU2 (dsd_opts * opts, dsd_state * state)
}
//if (state->errs == 0 && algidhex != 0x80)
if (opts->payload == 1 && state->errs == 0)
if (opts->payload == 1)
{
//fprintf (stderr, " LDU2 ALG ID: 0x%X KEY ID: 0x%X MI: %s \n", algidhex, kidhex, mi);
fprintf (stderr, " LDU2 ALG ID: 0x%X KEY ID: 0x%X MI: 0x%08llX%08llX%02llX\n", algidhex, kidhex, mihex1, mihex2, mihex3);