From f8fd1832ef9c6f08ab52ff59c10c287cc531545d Mon Sep 17 00:00:00 2001 From: Ofi Date: Mon, 7 Aug 2017 12:20:03 +0200 Subject: [PATCH] =?UTF-8?q?Funktionsf=C3=A4hig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon/services/emotiv-websocket.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/services/emotiv-websocket.js b/addon/services/emotiv-websocket.js index 74951b0..d686dc4 100644 --- a/addon/services/emotiv-websocket.js +++ b/addon/services/emotiv-websocket.js @@ -28,8 +28,8 @@ export default Ember.Service.extend({ let data = event.data; data = JSON.parse(data); - let mentalCommand = data["mentalCommand"]; - console.log(mentalCommand); + + let mentalCommand = data[mentalCommand]; //MentalCommand is a push if(mentalCommand === 2){ this.triggerZoom(-0.5); -- GitLab