Skip to content

Commit

Permalink
Fix module size and update api call (#9)
Browse files Browse the repository at this point in the history
Fixed module size and updated api call to wasm3 version 0.4.9
  • Loading branch information
Andful authored Apr 6, 2021
1 parent afb312e commit 3d8e830
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void wasm_task(void *)
FATAL("ReadWasm", "File not found")

IM3Module module;
result = m3_ParseModule(env, &module, buffer, app_wasm_size - 1);
result = m3_ParseModule(env, &module, buffer, app_wasm_size);
if (result)
FATAL("ParseModule", result);

Expand All @@ -143,8 +143,7 @@ void wasm_task(void *)

printf("Running WebAssembly...\n");

const char *i_argv[1] = {NULL};
result = m3_CallWithArgs(f, 0, i_argv);
result = m3_CallV(f);

// Should not arrive here

Expand Down Expand Up @@ -224,4 +223,4 @@ void setup()
void loop()
{
delay(100);
}
}

0 comments on commit 3d8e830

Please sign in to comment.