bugfix in pixelforge (no blur by default), fix glitch in animated gifs for C3

This commit is contained in:
Damian Schneider
2026-04-07 23:29:31 +02:00
parent 1aba7057a5
commit 8228c7eea4
2 changed files with 5 additions and 1 deletions

View File

@@ -1195,7 +1195,7 @@ async function imgPlay(url,name){
on:true,
seg: cur!==null && cur!==tgt
? [{id:cur,fx:0,n:""},{id:tgt,fx:53,frz:false,sx:128,n:name}]
: {id:tgt,fx:53,frz:false,sx:128,n:name}
: {id:tgt,fx:53,frz:false,sx:128,ix:0,n:name}
};
const r=await fetch(getURL('/json/state'),{method:'POST',body:JSON.stringify(j)});
const out=await r.json();

View File

@@ -28,6 +28,10 @@ int fileReadCallback(void) {
}
int fileReadBlockCallback(void * buffer, int numberOfBytes) {
#ifdef CONFIG_IDF_TARGET_ESP32C3
unsigned t0 = millis();
while (strip.isUpdating() && (millis() - t0 < 15)) yield(); // be nice, but not too nice. Waits up to 15ms to avoid glitches
#endif
return file.read((uint8_t*)buffer, numberOfBytes);
}