Skip to content

Commit

Permalink
Add the correct copy pasta
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Apr 12, 2024
1 parent f5b6790 commit 964f75a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/TinyGPS++.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,13 @@ void TinyGPSAltitude::set(const char *term)
newval = TinyGPSPlus::parseDecimal(term);
}

void TinyGPSAltitude::commit(uint32_t timestamp)
{
createTime = timestamp;
val = newval;
flags |= (FLAG_VALID|FLAG_UPDATED);
}

void TinyGPSInteger::commit(uint32_t timestamp)
{
createTime = timestamp;
Expand Down

0 comments on commit 964f75a

Please sign in to comment.