исправления для TDMA

This commit is contained in:
2025-06-01 15:59:42 +03:00
parent c2dd4b13e8
commit 50f82483fd
6 changed files with 20 additions and 17 deletions

View File

@@ -83,19 +83,19 @@ class ServerResources {
cmd += " ";
cmd += FIRMWARE_LOCATION;
system(cmd.c_str());
cp.setDmaDebug("begin_save_config", "");
cp.setDmaDebug("save_config", "");
});
}
#ifdef MODEM_IS_TDMA
void doTerminalUpgradeOta() const {
api->executeInApi([&](proxy::CpProxy&) {
CP_SetDmaDebug(sid, "begin_save_config", "");
api->executeInApi([&](auto& cp) {
cp.setDmaDebug("begin_save_config", "");
std::string cmd(UPGRADE_COMMAND);
cmd += " ";
cmd += api->getOtaFileLocation();
system(cmd.c_str());
CP_SetDmaDebug(sid, "save_config", "");
cp.setDmaDebug("save_config", "");
});
}
#endif