Skip to content

Commit 2184c00

Browse files
committed
Enable WASM_MEMORY_LIMIT by default
1 parent 977df98 commit 2184c00

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: examples/Wasm_Blink/Wasm_Blink.ino

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
#define WASM_STACK_SLOTS 1024
1717
#define NATIVE_STACK_SIZE 32768
1818

19-
// For devices that cannot allocate a 64KiB wasm page
20-
#if defined(ESP8266) || defined(PARTICLE) //...
19+
// Most devices that cannot allocate a 64KiB wasm page
2120
#define WASM_MEMORY_LIMIT 2048
22-
#endif
2321

2422
/*
2523
* WebAssembly app
@@ -86,9 +84,9 @@ m3ApiRawFunction(m3_arduino_delay)
8684
uint8_t mapPinMode(uint8_t mode)
8785
{
8886
switch(mode) {
89-
case (0): return INPUT;
90-
case (1): return OUTPUT;
91-
case (2): return INPUT_PULLUP;
87+
case 0: return INPUT;
88+
case 1: return OUTPUT;
89+
case 2: return INPUT_PULLUP;
9290
}
9391
return INPUT;
9492
}

0 commit comments

Comments
 (0)