mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
adding latest stuff to MSP
This commit is contained in:
parent
edc7df490c
commit
1bc89ae22a
2 changed files with 4 additions and 0 deletions
|
@ -206,6 +206,8 @@ function process_data(command, message_buffer, message_length_expected) {
|
||||||
case MSP_codes.MSP_IDENT:
|
case MSP_codes.MSP_IDENT:
|
||||||
CONFIG.version = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
CONFIG.version = parseFloat((data.getUint8(0) / 100).toFixed(2));
|
||||||
CONFIG.multiType = data.getUint8(1);
|
CONFIG.multiType = data.getUint8(1);
|
||||||
|
CONFIG.msp_version = data.getUint8(2);
|
||||||
|
CONFIG.capability = data.getUint32(3, 1);
|
||||||
|
|
||||||
$('.software-version').html(CONFIG.version);
|
$('.software-version').html(CONFIG.version);
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ var configuration_received = false;
|
||||||
var CONFIG = {
|
var CONFIG = {
|
||||||
version: 0,
|
version: 0,
|
||||||
multiType: 0,
|
multiType: 0,
|
||||||
|
msp_version: 0,
|
||||||
|
capability: 0,
|
||||||
cycleTime: 0,
|
cycleTime: 0,
|
||||||
i2cError: 0,
|
i2cError: 0,
|
||||||
activeSensors: 0,
|
activeSensors: 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue