mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 00:41:44 +01:00
Update ebyte_lora_e220.cpp
This commit is contained in:
parent
f77c197dc6
commit
db96c4bf59
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue