Skip to content

Commit 2a3cfc6

Browse files
committed
Tone is now optionnal
Signed-off-by: Frederic Pillon <[email protected]>
1 parent b7632c4 commit 2a3cfc6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/NonReg/Basics/Tests_basic_functions/Test_IO.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Test some advanced I/O functions
33
*/
4-
4+
#ifdef TIMER_TONE
55
/*
66
* Variable for advanced I/O test
77
*/
@@ -82,3 +82,4 @@ void test_IO_IT(void)
8282
clknb++;
8383
}
8484
}
85+
#endif

examples/NonReg/Basics/Tests_basic_functions/Tests_basic_functions.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ void list_test(void)
2222
Serial.println("1-String");
2323
Serial.println("2-Math");
2424
Serial.println("3-Bytes");
25+
#ifdef TIMER_TONE
2526
Serial.println("4-Advanced I/O");
27+
#endif
2628
}
2729

2830
void loop() {
@@ -37,7 +39,9 @@ void loop() {
3739
case 1: test_string(); break;
3840
case 2: test_math(); break;
3941
case 3: test_bytes(); break;
42+
#ifdef TIMER_TONE
4043
case 4: test_IO(); break;
44+
#endif
4145
default: break;
4246
}
4347

0 commit comments

Comments
 (0)