mirror of
https://github.com/siemens-mobile-hacks/node-sie-serial.git
synced 2026-11-25 17:17:17 +00:00
fixes
This commit is contained in:
parent
aaa8cec6a8
commit
b66dc4a72e
1 changed files with 2 additions and 3 deletions
|
|
@ -71,9 +71,8 @@ const ramAddr = Number((BigInt(addrsel) & 0xFFFF0000n));
|
|||
console.log(sprintf("Ram: %08X, %dM", ramAddr, ramSize / 1024 / 1024));
|
||||
console.log("Searching empty ram block....");
|
||||
|
||||
let emptyRamBlock = ramAddr + ramSize - 256 * 1024;
|
||||
let emptyRamBlock = 0;
|
||||
|
||||
/*
|
||||
for (let i = ramAddr; i < ramAddr + ramSize; i += 256 * 1024) {
|
||||
const blockStart = await dwd.readMemory(i, 230);
|
||||
if (blockStart.buffer.every((v) => v == 0)) {
|
||||
|
|
@ -84,11 +83,11 @@ for (let i = ramAddr; i < ramAddr + ramSize; i += 256 * 1024) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!emptyRamBlock) {
|
||||
console.log("Empty RAM block not found!");
|
||||
process.exit(1);
|
||||
}
|
||||
*/
|
||||
|
||||
console.log(sprintf("Found empty ram block: %08X", emptyRamBlock));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue