save profile number in primary CONFIG object

10.3.x-maintenance
cTn 2013-06-21 14:46:21 +02:00
parent ba3a80f987
commit 785cccfcbf
1 changed files with 2 additions and 0 deletions

View File

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