1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 19:40:22 +03:00

MSP sanity fixes

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-06 14:44:46 +01:00
parent 5bccc1798a
commit 3d47c137cf
2 changed files with 141 additions and 136 deletions

View file

@ -1,5 +1,9 @@
'use strict';
/**
*
* @typedef {{state: number, message_direction: number, code: number, message_length_expected: number, message_length_received: number, message_buffer: null, message_buffer_uint8_view: null, message_checksum: number, callbacks: Array, packet_error: number, unsupported: number, ledDirectionLetters: [*], ledFunctionLetters: [*], ledBaseFunctionLetters: [*], ledOverlayLetters: [*], last_received_timestamp: null, analog_last_received_timestamp: number, read: MSP.read, send_message: MSP.send_message, promise: MSP.promise, callbacks_cleanup: MSP.callbacks_cleanup, disconnect_cleanup: MSP.disconnect_cleanup}} MSP
*/
var MSP = {
state: 0,
message_direction: 1,