1
0
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:
James Cotton 2012-02-07 09:01:58 -06:00
parent 02bec750bd
commit a89d425b23

View File

@ -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;