made recorder crash fix more robust

This commit is contained in:
AlexandreRouma 2024-04-22 21:54:01 +02:00
parent e60eca5d6d
commit da1417b5ab

View File

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