Compare commits

...

6 Commits

Author SHA1 Message Date
Jonas Diemer
531b7a9744
Merge 800a26b88d into 52995fa722 2026-01-12 21:47:36 +01:00
Dave Allie
52995fa722
chore: Cut release 0.13.1
Some checks failed
CI / build (push) Has been cancelled
2026-01-13 02:09:39 +11:00
Dave Allie
d4f8eda154
fix: Increase home activity stack size (#333)
## Summary

* fix: Increase home activity stack size

## Additional Context

* Home activity can crash occasionally depending on book

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? No
2026-01-13 02:09:06 +11:00
Jonas Diemer
800a26b88d Only italic (because it shows also inline), move brackets around. 2025-12-30 14:23:47 +01:00
Jonas Diemer
61b2622206
Merge branch 'daveallie:master' into feature/show-img-alt-text 2025-12-30 14:18:31 +01:00
Jonas Diemer
c960e32d05 Show ALT text of images. 2025-12-30 14:10:10 +01:00
3 changed files with 22 additions and 5 deletions

View File

@ -65,9 +65,26 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
if (matches(name, IMAGE_TAGS, NUM_IMAGE_TAGS)) {
// TODO: Start processing image tags
self->skipUntilDepth = self->depth;
self->depth += 1;
return;
std::string alt;
if (atts != nullptr) {
for (int i = 0; atts[i]; i += 2) {
if (strcmp(atts[i], "alt") == 0) {
alt = "[Image: " + std::string(atts[i + 1]) + "]";
}
}
Serial.printf("[%lu] [EHP] Image alt: %s\n", millis(), alt.c_str());
self->startNewTextBlock(TextBlock::CENTER_ALIGN);
self->italicUntilDepth = min(self->italicUntilDepth, self->depth);
self->depth += 1;
self->characterData(userData, alt.c_str(), alt.length());
} else {
// Skip for now
self->skipUntilDepth = self->depth;
self->depth += 1;
return;
}
}
if (matches(name, SKIP_TAGS, NUM_SKIP_TAGS)) {

View File

@ -2,7 +2,7 @@
default_envs = default
[crosspoint]
version = 0.13.0
version = 0.13.1
[base]
platform = espressif32 @ 6.12.0

View File

@ -69,7 +69,7 @@ void HomeActivity::onEnter() {
updateRequired = true;
xTaskCreate(&HomeActivity::taskTrampoline, "HomeActivityTask",
2048, // Stack size
4096, // Stack size
this, // Parameters
1, // Priority
&displayTaskHandle // Task handle