From bb85e7544e41646b9db0e41a4b16964b7be5a3ee Mon Sep 17 00:00:00 2001 From: HTotoo Date: Fri, 19 Sep 2025 17:31:33 +0200 Subject: [PATCH] float fix --- main/settings.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/settings.hpp b/main/settings.hpp index d60890e..0985c5c 100644 --- a/main/settings.hpp +++ b/main/settings.hpp @@ -24,13 +24,13 @@ class TConfig { if (err == ESP_OK) { // Parse frequency string std::string freq_string(tmpstr); - lora_config.frequency = std::stof(freq_string); + lora_config.frequency = std::stod(freq_string); } err = nvs_get_str(handle, "bwstr", tmpstr, &tmpstrlen); if (err == ESP_OK) { // Parse bandwidth string std::string bw_string(tmpstr); - lora_config.bandwidth = std::stof(bw_string); + lora_config.bandwidth = std::stod(bw_string); } err = nvs_get_u8(handle, "sf", &lora_config.spreading_factor); if (err != ESP_OK) lora_config.spreading_factor = 11;