From a304f330fb27d84f3cdfdfe7477798caa3c2f66a Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Sat, 23 May 2026 11:18:34 +0300 Subject: [PATCH] ... --- asibfm700_config.h | 42 ------------------------------------------ asibfm700_pcm_fit.cpp | 2 +- 2 files changed, 1 insertion(+), 43 deletions(-) diff --git a/asibfm700_config.h b/asibfm700_config.h index 0248a23..22886b9 100644 --- a/asibfm700_config.h +++ b/asibfm700_config.h @@ -326,48 +326,6 @@ public: if (!std::regex_match(buffer, headerRx)) { nskip = 0; } - // auto lines = std::views::split(buffer, DEFAULT_RECORD_DELIMITER); - // if (std::ranges::distance(lines.begin(), lines.end()) >= 5) { - // bool head_exists = true; - // std::vector tl; - // for (auto const& l : lines) { // lines must start with COMMENT_SEQ - // tl.emplace_back(mcc::utils::trimSpaces(l)); - // if (tl.back().size() >= COMMENT_SEQ.size()) { - // auto found = std::ranges::search(tl.back(), COMMENT_SEQ); - // if (tl.back().begin() != found.begin()) { - // head_exists = false; - // break; - // } - // } else { - // head_exists = false; - // break; - // } - // } - // if (head_exists) { - // // the first and last lines must contain only a comment sequence and possible spaces - // if (tl[0].size() != COMMENT_SEQ.size() || tl[3].size() != COMMENT_SEQ.size()) { - // head_exists = false; - // } else { - // if (tl[1] != "# ASTROSIB FM-700 MOUNT CONFIGURATION") { - // head_exists = false; - // } else { - // std::regex rx{ - // "# \\(created at " - // "20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9] " - // "UTC\\)"}; - - // if (!std::regex_match(std::string{tl[2]}, rx)) { - // head_exists = false; - // } - // } - // } - // } - - // if (!head_exists) { // delete the first N lines - // nskip = 0; - // } - // } - ec = base_t::fromCharRange(buffer, nskip); if (!ec) { // remove possible spaces in filenames diff --git a/asibfm700_pcm_fit.cpp b/asibfm700_pcm_fit.cpp index dc8e5e7..69c51bf 100644 --- a/asibfm700_pcm_fit.cpp +++ b/asibfm700_pcm_fit.cpp @@ -40,7 +40,7 @@ int main(int argc, char* argv[]) asibfm700::Asibfm700MountConfig mount_cfg; asibfm700::Asibfm700MountConfiguration cfg; - cfg.dumpDefaultsToFile("eecc.cfg"); + // cfg.dumpDefaultsToFile("eecc.cfg"); cfg.load("eecc.cfg"); cfg.save("eecc.cfg1");