mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-03-26 17:45:28 +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(monStr, "%02d", ltm->tm_mon + 1);
|
||||||
sprintf(yearStr, "%02d", ltm->tm_year + 1900);
|
sprintf(yearStr, "%02d", ltm->tm_year + 1900);
|
||||||
if (core::modComManager.getModuleName(name) == "radio") {
|
if (core::modComManager.getModuleName(name) == "radio") {
|
||||||
int mode;
|
int mode = -1;
|
||||||
core::modComManager.callInterface(name, RADIO_IFACE_CMD_GET_MODE, NULL, &mode);
|
core::modComManager.callInterface(name, RADIO_IFACE_CMD_GET_MODE, NULL, &mode);
|
||||||
modeStr = radioModeToString[mode];
|
if (mode >= 0) { modeStr = radioModeToString[mode]; };
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace in template
|
// Replace in template
|
||||||
|
Loading…
x
Reference in New Issue
Block a user