mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
Reset the received rate for overo sync object
This commit is contained in:
parent
02bec750bd
commit
a89d425b23
@ -195,6 +195,7 @@ static void overoSyncTask(void *parameters)
|
||||
// Update stats. This will trigger a local send event too
|
||||
OveroSyncStatsData syncStats;
|
||||
syncStats.Send = overosync->sent_bytes;
|
||||
syncStats.Received = 0;
|
||||
syncStats.Connected = syncStats.Send > 500 ? OVEROSYNCSTATS_CONNECTED_TRUE : OVEROSYNCSTATS_CONNECTED_FALSE;
|
||||
OveroSyncStatsSet(&syncStats);
|
||||
overosync->sent_bytes = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user