1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

save profile number in primary CONFIG object

This commit is contained in:
cTn 2013-06-21 14:46:21 +02:00
parent ba3a80f987
commit 785cccfcbf

View file

@ -54,6 +54,7 @@ var CONFIG = {
i2cError: 0,
activeSensors: 0,
mode: 0,
profile: 0,
uid: [0, 0, 0],
accelerometerTrims: [0, 0]
@ -481,6 +482,7 @@ function process_message(code, data) {
CONFIG.i2cError = view.getUint16(2, 1);
CONFIG.activeSensors = view.getUint16(4, 1);
CONFIG.mode = view.getUint32(6, 1);
CONFIG.profile = view.getUint8(10);
$('span.cycle-time').html(CONFIG.cycleTime);