Reset protocol level RX frame delta after reading
commit67c57c7a65ab9423afddfcbe45a74bf3a4b5290e
authorBruce Luckcuck <github@etracer.net>
Tue, 10 Dec 2019 15:19:15 +0000 (10 10:19 -0500)
committerBruce Luckcuck <github@etracer.net>
Fri, 13 Dec 2019 22:14:16 +0000 (13 17:14 -0500)
treef84b2033ddaead72da851219e44aaf417ad446da
parent4c58889915d0d674374f19274986e03dce7a6c04
Reset protocol level RX frame delta after reading
Handle cases where the protocol stops processing valid frames. Before this fix the last valid frame interval would continue to be reported if no more valid frames were received. No calculation will fallback to the interval measured in the RX task which will ultimately get set to the max task interval (when no data is received) or 30ms.

Change to capturing the last valid frame time rather than the delta in the protocol level. Move the common calculation of the delta up into rx.c.
src/main/rx/crsf.c
src/main/rx/ibus.c
src/main/rx/jetiexbus.c
src/main/rx/rx.c
src/main/rx/rx.h
src/main/rx/sbus.c
src/main/rx/spektrum.c
src/main/rx/sumd.c