Skip to content

Commit 967765a

Browse files
committed
Disable CSV map downloading
1 parent f1cb53b commit 967765a

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

make.html

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
<div id="controls">
181181
<button class="btn" id="downloadBin">Download .bin</button>
182182
<!-- <button class="btn" id="downloadFlipper">Download Flipper .nfc</button> -->
183-
<button class="btn" id="downloadMap">Download address map (.csv)</button>
183+
<!-- <button class="btn" id="downloadMap">Download address map (.csv)</button> -->
184184
<button class="btn" id="writeWebNFC" disabled>Write via Web NFC</button>
185185
<button class="btn btn--warning" id="loadFileBtn">Load File</button>
186186
<button class="btn btn--warning" id="readWebNFC" disabled>
@@ -794,11 +794,11 @@
794794
downloadBin(buf, `${filename}.bin`);
795795
}
796796
};
797-
document.getElementById("downloadMap").onclick = () => {
798-
if (!checkMissing()) {
799-
downloadMap(rows, `${filename}_map.csv`);
800-
}
801-
};
797+
// document.getElementById("downloadMap").onclick = () => {
798+
// if (!checkMissing()) {
799+
// downloadMap(rows, `${filename}_map.csv`);
800+
// }
801+
// };
802802
// document.getElementById("downloadFlipper").onclick = () => {
803803
// if (!checkMissing()) {
804804
// downloadFlipperNfc(buf, start, `${filename}.nfc`);
@@ -1257,16 +1257,9 @@
12571257
const f = e.target.files?.[0];
12581258
if (!f) return;
12591259
try {
1260-
if (f.name.toLowerCase().endsWith(".bin")) {
1261-
const buf = await f.arrayBuffer();
1262-
msg("Loaded .bin");
1263-
loadBufferIntoForm(buf, 0x00);
1264-
} else {
1265-
const text = await f.text();
1266-
const { startAddr, data } = parseBytesFromText(text);
1267-
msg(`Loaded dump (start ${addrHex(startAddr)})`);
1268-
loadBufferIntoForm(data, startAddr);
1269-
}
1260+
const buf = await f.arrayBuffer();
1261+
msg("Loaded .bin file");
1262+
loadBufferIntoForm(buf, 0x00);
12701263
} catch (err) {
12711264
msg("Import error: " + err.message, true);
12721265
} finally {

0 commit comments

Comments
 (0)