From db96c4bf59057605c2e7477e4b6488fc9d1be60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Fri, 2 Feb 2024 13:20:11 +0000 Subject: [PATCH] Update ebyte_lora_e220.cpp --- esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp b/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp index ebda639eb7..dbbfe26976 100644 --- a/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp +++ b/esphome/components/ebyte_lora_e220/ebyte_lora_e220.cpp @@ -151,7 +151,7 @@ void EbyteLoraE220::loop() { * Starting to process the raw message */ // found gps data in the raw message, lets parse it - if (raw_message_.find('gps:') != std::string::npos) { + if (raw_message_.find("gps:") != std::string::npos) { int start = raw_message_.find(','); // minus gps latitude_ = atof(raw_message_.substr(4, start).c_str());