From 964f75a72cccd6b53cd74e4add1f7a42c6f7344d Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Fri, 12 Apr 2024 11:47:45 -0500 Subject: [PATCH] Add the correct copy pasta --- src/TinyGPS++.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/TinyGPS++.cpp b/src/TinyGPS++.cpp index 789a830..93fa809 100644 --- a/src/TinyGPS++.cpp +++ b/src/TinyGPS++.cpp @@ -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;