[gps] Fix slow parsing (#9953)

This commit is contained in:
Keith Burzinski 2025-07-29 00:21:52 -05:00 committed by GitHub
parent 9d43ddd6f1
commit 4ff3137c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ void GPS::update() {
void GPS::loop() {
while (this->available() > 0 && !this->has_time_) {
if (!this->tiny_gps_.encode(this->read())) {
return;
continue;
}
if (this->tiny_gps_.location.isUpdated()) {
this->latitude_ = this->tiny_gps_.location.lat();