1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

comment PL

Co-Authored-By: Petr Ledvina <2318015+ledvinap@users.noreply.github.com>
This commit is contained in:
ctzsnooze 2024-11-26 15:35:37 +11:00
parent 932fb2da87
commit 7c94acd041

View file

@ -2625,7 +2625,8 @@ void onGpsNewData(void)
}
// check if new data has been received since last check
// client stamp should be initialized to 0, then gpsHasNewData will return true on first call
// if client stamp is initialized to 0, gpsHasNewData will return false until first GPS position update
// if client stamp is initialized to ~0, gpsHasNewData will return true on first call
bool gpsHasNewData(uint16_t* stamp) {
if (*stamp != currentGpsStamp) {
*stamp = currentGpsStamp;