Skip to content

Commit

Permalink
sync with memory partition & IDF v5 changes #1258
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Nov 24, 2023
1 parent 5c12493 commit 92ef810
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contributed/giphy/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class GiphyAppBehavior extends Behavior {
}
downloadGIF(application, url){
let ready = false;
let partition = new Flash("xs");
let blockSize = partition.blockSize;
globalThis.partition ??= new Flash("xs");
const blockSize = partition.blockSize;
partition.erase(0);
const buffer = partition.map();
let blockIndex = 1;
Expand Down
8 changes: 8 additions & 0 deletions contributed/giphy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
],
"creation":{
"static": 69152,
"chunk": {
"initial": 8192,
"incremental": 1024
},
"heap": {
"initial": 512,
"incremental": 64
},
"stack": 360
},
"x-config": {
Expand Down
4 changes: 2 additions & 2 deletions contributed/giphy/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class GIFScreenBehavior extends Behavior {
application.purge();
let GIF = new GIFImage(this.data, {
anchor: "GIF", top: 65,
buffer: (new Flash("xs")).map(),
buffer: partition.map(),
Behavior:GIFImageBehavior
});
container.insert(GIF, this.data["FOOTER"]);
Expand All @@ -202,7 +202,7 @@ class GIFScreenBehavior extends Behavior {
}
let GIF = new GIFImage(this.data, {
anchor: "GIF", top: 65,
buffer: (new Flash("xs")).map(),
buffer: partition.map(),
Behavior:GIFImageBehavior
});
container.insert(GIF, this.data["FOOTER"]);
Expand Down

0 comments on commit 92ef810

Please sign in to comment.