From 785cccfcbffb730045fd11a069677d0e81df176f Mon Sep 17 00:00:00 2001 From: cTn Date: Fri, 21 Jun 2013 14:46:21 +0200 Subject: [PATCH] save profile number in primary CONFIG object --- js/serial_backend.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/serial_backend.js b/js/serial_backend.js index 7fa7d913..b5ed2e95 100644 --- a/js/serial_backend.js +++ b/js/serial_backend.js @@ -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);