24
24
25
25
class MyTestCase extends ImpTestCase {
26
26
27
- static MANUAL_ACTION_TIMEOUT = 6 ;
27
+ static MANUAL_ACTION_TIMEOUT = 15 ;
28
28
static DATA_WAIT = 1 ;
29
29
30
30
_i2c = null ;
@@ -65,6 +65,8 @@ class MyTestCase extends ImpTestCase {
65
65
}. bindenv (this ));
66
66
}
67
67
68
+ /*
69
+ // TODO: Disable it for now as LIS2DH doesn't have ADC
68
70
function testADC() {
69
71
this.info(format("please set the voltage to ADC channel 1 to 1.2V within %d seconds", MANUAL_ACTION_TIMEOUT));
70
72
return Promise(function(resolve, reject) {
@@ -80,6 +82,7 @@ class MyTestCase extends ImpTestCase {
80
82
}.bindenv(this));
81
83
}.bindenv(this));
82
84
}
85
+ */
83
86
84
87
function testInterruptLatching () {
85
88
local accel = getLIS ();
@@ -373,7 +376,7 @@ class MyTestCase extends ImpTestCase {
373
376
}
374
377
375
378
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) );
377
380
return Promise (function (resolve, reject) {
378
381
local accel = getLIS ();
379
382
accel. configureClickInterrupt (true , LIS3DH_DOUBLE_CLICK);
@@ -389,7 +392,7 @@ class MyTestCase extends ImpTestCase {
389
392
}
390
393
391
394
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) );
393
396
return Promise (function (resolve, reject) {
394
397
local accel = getLIS ();
395
398
accel. configureFreeFallInterrupt (true );
@@ -402,4 +405,4 @@ class MyTestCase extends ImpTestCase {
402
405
}. bindenv (this ));
403
406
}
404
407
405
- }
408
+ }
0 commit comments