Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 4ae20a6

Browse files
committed
Improved small check
1 parent 7cedfe2 commit 4ae20a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gsm/GSM.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ bool GSM::get_location(double& latitude, double& longitude)
273273
this->serial->read_line(); // Eat new line
274274
response = this->serial->read_line();
275275
this->command_logger->log("Received: '"+ response +"'");
276-
if (response == "ERROR" || response != "OK")
276+
if (response != "OK")
277277
{
278278
this->logger->log("Error getting location on 'AT+CIPGSMLOC=1,1' response.");
279279
if (this->send_command_read("AT+SAPBR=0,1") != "OK")

0 commit comments

Comments
 (0)