Skip to content

Commit 68ed30f

Browse files
author
Pavel Petroshenko
committed
Tests updated.
1 parent 5079f25 commit 68ed30f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Diff for: tests/LIS3HD.manual.device.test.nut

+7-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
class MyTestCase extends ImpTestCase {
2626

27-
static MANUAL_ACTION_TIMEOUT = 6;
27+
static MANUAL_ACTION_TIMEOUT = 15;
2828
static DATA_WAIT = 1;
2929

3030
_i2c = null;
@@ -65,6 +65,8 @@ class MyTestCase extends ImpTestCase {
6565
}.bindenv(this));
6666
}
6767

68+
/*
69+
// TODO: Disable it for now as LIS2DH doesn't have ADC
6870
function testADC() {
6971
this.info(format("please set the voltage to ADC channel 1 to 1.2V within %d seconds", MANUAL_ACTION_TIMEOUT));
7072
return Promise(function(resolve, reject) {
@@ -80,6 +82,7 @@ class MyTestCase extends ImpTestCase {
8082
}.bindenv(this));
8183
}.bindenv(this));
8284
}
85+
*/
8386

8487
function testInterruptLatching() {
8588
local accel = getLIS();
@@ -373,7 +376,7 @@ class MyTestCase extends ImpTestCase {
373376
}
374377

375378
function testDoubleClick() {
376-
this.info("please double tap the accelerometer within %d seconds to test double click interrupts");
379+
this.info(format("please double tap the accelerometer within %d seconds to test double click interrupts", MANUAL_ACTION_TIMEOUT));
377380
return Promise(function(resolve, reject) {
378381
local accel = getLIS();
379382
accel.configureClickInterrupt(true, LIS3DH_DOUBLE_CLICK);
@@ -389,7 +392,7 @@ class MyTestCase extends ImpTestCase {
389392
}
390393

391394
function testFreeFallInterrupt() {
392-
this.info("please toss the device in the air within %d seconds to test free fall interrupts");
395+
this.info(format("please toss the device in the air within %d seconds to test free fall interrupts", MANUAL_ACTION_TIMEOUT));
393396
return Promise(function(resolve, reject) {
394397
local accel = getLIS();
395398
accel.configureFreeFallInterrupt(true);
@@ -402,4 +405,4 @@ class MyTestCase extends ImpTestCase {
402405
}.bindenv(this));
403406
}
404407

405-
}
408+
}

0 commit comments

Comments
 (0)