Fix Segfault on MBE Payload directory not existing

Fix Segfault on MBE Payload directory not existing
--code will check for existence of save directory, and create it if needed to prevent a segfault.
--other minor tweak to DMR slots
This commit is contained in:
lwvmobile
2022-05-13 13:18:44 -04:00
committed by GitHub
parent 4f1ecda2ad
commit 16e84ae104
2 changed files with 14 additions and 1 deletions

View File

@@ -2085,6 +2085,10 @@ void ProcessDmrTerminaisonLC(dsd_opts * opts, dsd_state * state, uint8_t info[19
state->payload_keyid = 0;
//state->payload_mfid = 0;
state->payload_mi = 0;
state->payload_algidR = 0;
state->payload_keyidR = 0;
//state->payload_mfid = 0;
state->payload_miR = 0;
//tlc
if((IrrecoverableErrors == 0) && CRCCorrect) //amateur DMR seems to only set radio ID up here I think, figure out best way to set without messing up other DMR types