Skip to content

Commit e0dbef7

Browse files
committed
- update test.js to wait for single button press
1 parent 120a4f2 commit e0dbef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,12 @@ SensorTag.discover(function(sensorTag) {
370370
}
371371
},
372372
function(callback) {
373-
console.log('readSimpleRead');
373+
console.log('readSimpleRead - waiting for button press ...');
374374
sensorTag.on('simpleKeyChange', function(left, right) {
375375
console.log('left: ' + left);
376376
console.log('right: ' + right);
377377

378-
if (left && right) {
378+
if (left || right) {
379379
sensorTag.notifySimpleKey(callback);
380380
}
381381
});

0 commit comments

Comments
 (0)