fix: сборка на SCPC и ШПС модемах

This commit is contained in:
2025-09-17 14:26:09 +03:00
parent bda8cc1962
commit 4c9b713c4e
2 changed files with 7 additions and 4 deletions

View File

@@ -970,7 +970,7 @@ nlohmann::json api_driver::obj::TerminalRxTxSettings::asJson() const {
api_driver::obj::TerminalRxTxSettings::~TerminalRxTxSettings() = default;
#ifdef API_OBJECT_MANAGER_LOGS_ENABLE
// Вспомогательная функция для получения отсортированного списка файлов логов
std::vector<std::string> getLogFilesSorted(const std::string& path) {
std::vector<std::string> files;
@@ -994,6 +994,7 @@ std::vector<std::string> getLogFilesSorted(const std::string& path) {
return files;
}
api_driver::obj::TerminalManagerLogs::TerminalManagerLogs(const std::string& path): logsFileDir(path) {}
std::string api_driver::obj::TerminalManagerLogs::loadPreview() {
@@ -1061,8 +1062,7 @@ void api_driver::obj::TerminalManagerLogs::loadFullLog(std::vector<char>& destDa
}
api_driver::obj::TerminalManagerLogs::~TerminalManagerLogs() = default;
#endif // API_OBJECT_MANAGER_LOGS_ENABLE

View File

@@ -15,8 +15,11 @@
typedef boost::property_tree::ptree::path_type json_path;
#ifdef API_OBJECT_MANAGER_LOGS_ENABLE
api_driver::ApiDriver::ApiDriver(): logs(MANAGER_LOGS_DIR) {};
#else
api_driver::ApiDriver::ApiDriver() {};
#endif
void api_driver::ApiDriver::startDaemon() {
if (daemon == nullptr) {