mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
made recorder crash fix more robust
This commit is contained in:
parent
e60eca5d6d
commit
da1417b5ab
@ -476,9 +476,9 @@ private:
|
||||
sprintf(monStr, "%02d", ltm->tm_mon + 1);
|
||||
sprintf(yearStr, "%02d", ltm->tm_year + 1900);
|
||||
if (core::modComManager.getModuleName(name) == "radio") {
|
||||
int mode;
|
||||
int mode = -1;
|
||||
core::modComManager.callInterface(name, RADIO_IFACE_CMD_GET_MODE, NULL, &mode);
|
||||
modeStr = radioModeToString[mode];
|
||||
if (mode >= 0) { modeStr = radioModeToString[mode]; };
|
||||
}
|
||||
|
||||
// Replace in template
|
||||
|
Loading…
Reference in New Issue
Block a user