mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
comment PL
Co-Authored-By: Petr Ledvina <2318015+ledvinap@users.noreply.github.com>
This commit is contained in:
parent
932fb2da87
commit
7c94acd041
1 changed files with 2 additions and 1 deletions
|
@ -2625,7 +2625,8 @@ void onGpsNewData(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if new data has been received since last check
|
// 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) {
|
bool gpsHasNewData(uint16_t* stamp) {
|
||||||
if (*stamp != currentGpsStamp) {
|
if (*stamp != currentGpsStamp) {
|
||||||
*stamp = currentGpsStamp;
|
*stamp = currentGpsStamp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue