Skip to content

Commit 70037cf

Browse files
committed
Ensure Bangle.js 1 build can still continue to work by removing a few features that aren't used/useful
1 parent bca74e1 commit 70037cf

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

boards/BANGLEJS.blocklist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[
22
{"class":"OneWire","name":"*"},
3-
{"class":"SPI","name":"send4bit"}
3+
{"class":"SPI","name":"send4bit"},
4+
{"class":"E","name":"dumpTimers"},
5+
{"class":"E","name":"enableWatchdog"},
6+
{"class":"E","name":"getClock"},
7+
{"class":"Pin","name":"writeAtTime"}
48
]

src/jsvar.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4376,18 +4376,12 @@ static void _jsvDefragment_moveReferences(JsVarRef defragFromRef, JsVarRef defra
43764376
// find the last available item by searching forward (we can't just search back as we might hit a flat string)
43774377
vr += (unsigned int)jsvGetFlatStringBlocks(v); // skip forward
43784378
} else {
4379-
if (jsvHasSingleChild(v))
4379+
if (jsvHasSingleChild(v) || jsvHasChildren(v))
43804380
if (jsvGetFirstChild(v)==defragFromRef)
43814381
jsvSetFirstChild(v,defragToRef);
4382-
if (jsvHasStringExt(v))
4382+
if (jsvHasStringExt(v) || jsvHasChildren(v))
43834383
if (jsvGetLastChild(v)==defragFromRef)
43844384
jsvSetLastChild(v,defragToRef);
4385-
if (jsvHasChildren(v)) {
4386-
if (jsvGetFirstChild(v)==defragFromRef)
4387-
jsvSetFirstChild(v,defragToRef);
4388-
if (jsvGetLastChild(v)==defragFromRef)
4389-
jsvSetLastChild(v,defragToRef);
4390-
}
43914385
if (jsvIsName(v)) {
43924386
if (jsvGetNextSibling(v)==defragFromRef)
43934387
jsvSetNextSibling(v,defragToRef);

0 commit comments

Comments
 (0)