1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 00:35:20 +03:00

Frequency analyzer for MSP frames

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-18 19:10:29 +01:00
parent d1483e5e26
commit 2c334f6c23
3 changed files with 83 additions and 0 deletions

View file

@ -114,6 +114,11 @@ var MSP = {
bufView,
i;
/*
* For debug reasons, check how ofter MSP frames are executed
*/
helper.eventFrequencyAnalyzer.put(code);
// always reserve 6 bytes for protocol overhead !
if (data) {
var size = data.length + 6,