Skip to content

Commit 9f132fd

Browse files
committed
m4a examples: file does not support isOpen()
1 parent 0e5e69d commit 9f132fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests-cmake/codec/container-m4a/m4a.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333
}
3434

3535
file = SD.open("/home/pschatzmann/Music/m4a/alac.m4a");
36-
if (!file.isOpen()) {
36+
if (!file) {
3737
Serial.println("Failed to open file!");
3838
return;
3939
}

tests-cmake/codec/m4a-extractor/m4a-extrator.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void setup() {
3434
}
3535

3636
file = SD.open("/home/pschatzmann/Music/m4a/1-07 All You Need Is Love.m4a");
37-
if (!file.isOpen()) {
37+
if (!file) {
3838
Serial.println("Failed to open file!");
3939
return;
4040
}

0 commit comments

Comments
 (0)