From ce77926ca7440ed653e7c8ea635b10168cc3c96c Mon Sep 17 00:00:00 2001
From: Philippe Coval
Date: Mon, 25 Mar 2019 20:52:37 +0100
Subject: [PATCH] Revert "example: Use controllers not simulators"
This reverts commit 035bb65f03666ffdac0446f44bff70bfa1c7fb4c.
Bug: https://github.com/rzr/generic-sensors-lite/issues/3
Change-Id: I412ee9d80abe565ea5402f61f0c4bcac6514228a
---
example/index.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/example/index.js b/example/index.js
index 8b5b696..c03026b 100644
--- a/example/index.js
+++ b/example/index.js
@@ -18,12 +18,11 @@
'use strict';
var console = require('console');
-var GenericSensors = null;
-
+var GenericSensors;
try {
- GenericSensors = require('../lib/controllers');
+ GenericSensors = require('../generic-sensors-lite');
} catch(err) {
- GenericSensors = require('generic-sensors-lite/lib/controllers');
+ GenericSensors = require('generic-sensors-lite');
}
var i=0;