Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h3>Output:</h3>

<script type="module">
// Load the WASM lib
import init, {decode as esp_exception_decode} from "./esp_exception_decoder_rs.js";
import init, {decode as esp_stacktrace_decode} from "./esp_stacktrace_decoder_rs.js";

// Get some references to the DOM
const file_selector = document.querySelector('#file-selector');
Expand Down Expand Up @@ -104,7 +104,7 @@ <h3>Output:</h3>
reader.onload = (e) => {
// Convert the file content to Uint8Array for the decode function (expecting &[u8] in Rust)
const elf_bytes = new Uint8Array(e.target.result);
const decoded_addresses = esp_exception_decode(elf_bytes, stacktrace.value);
const decoded_addresses = esp_stacktrace_decode(elf_bytes, stacktrace.value);
// Unhide and update the decoded text area with the result from decode call
section_output.removeAttribute('hidden');
decoded_list.textContent = '';
Expand Down
Loading