From b43e4e76aca41eb9c8255d7e8427c239b814ffb7 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Sun, 18 Sep 2022 13:22:59 +0200 Subject: [PATCH] Changed to new ota url --- main/buildserver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/buildserver.cpp b/main/buildserver.cpp index f794f37..fe2ab5a 100644 --- a/main/buildserver.cpp +++ b/main/buildserver.cpp @@ -155,7 +155,7 @@ namespace buildserver { std::string get_hash_url(std::string hash) { - return fmt::format(fmt::runtime(url_for_hashes), hash); + return fmt::format("{}{}.bin", url_for_hashes, hash); } std::string get_latest_url() @@ -197,7 +197,7 @@ namespace buildserver { index = 0; url_for_latest = fmt::format("{}{}", configs.otaServerUrl.value(), doc["latest"].as()); - url_for_hashes = fmt::format("{}{}", configs.otaServerUrl.value(), doc["url"].as()); + url_for_hashes = fmt::format("{}{}", configs.otaServerUrl.value(), doc["new_url"].as()); parsing_finished = true; }