Return -1 from getTocIndexForSpineIndex if TOC item does not exist
This commit is contained in:
1 parent
e68e4b41ed
commit
8175069ea7
2 files changed
+15
-7
No files matched your search
+1
-2
@@ -299,6 +299,5 @@ int Epub::getTocIndexForSpineIndex(const int spineIndex) const {
|
||||
}
|
||||
|
||||
Serial.printf("[%lu] [EBP] TOC item not found\n", millis());
|
||||
// not found - default to first item
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
Reference in new issue
Block a user