Return -1 from getTocIndexForSpineIndex if TOC item does not exist

This commit is contained in:
Dave Allie committed 2025-12-13 21:17:22 +11:00
1 parent 5a7381a0eb
commit ead39fd04b
2 files changed
+15 -7

No files matched your search

+1 -2
View File
@@ -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;
}