made recorder crash fix more robust

pull/1391/head
AlexandreRouma 2024-04-22 21:54:01 +02:00
rodzic e60eca5d6d
commit da1417b5ab
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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