Return -1 from getTocIndexForSpineIndex if TOC item does not exist

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

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;
}