Skip to content

Commit

Permalink
example: Use controllers not simulators
Browse files Browse the repository at this point in the history
Change-Id: Iba61dfd597bb4c157a076a09e275ca57d925ada7
Signed-off-by: Philippe Coval <[email protected]>
  • Loading branch information
rzr committed Mar 25, 2019
1 parent 50b041e commit 035bb65
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
'use strict';
var console = require('console');

var GenericSensors;
var GenericSensors = null;

try {
GenericSensors = require('../generic-sensors-lite');
GenericSensors = require('../lib/controllers');
} catch(err) {
GenericSensors = require('generic-sensors-lite');
GenericSensors = require('generic-sensors-lite/lib/controllers');
}

var i=0;
Expand Down

0 comments on commit 035bb65

Please sign in to comment.