From 34b93b4644326e9f3e3fed7051596448f0b8ab91 Mon Sep 17 00:00:00 2001 From: "Brian A. Ignacio" Date: Thu, 18 Jul 2024 21:56:43 +0800 Subject: [PATCH] rm info chip magic, fix bundle atob ref (#148) --- rollup.config.mjs | 2 +- src/esploader.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 793897e2..48abcdc2 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -17,7 +17,7 @@ const config = { inlineDynamicImports: true }, plugins: [ - resolve({ preferBuiltins: false}), + resolve({ preferBuiltins: false, mainFields: ["browser"]}), commonjs(), babel({ exclude: 'node_modules/**', babelHelpers: "runtime", skipPreflightCheck: true }), json({ namedExports: false, preferConst: true }), diff --git a/src/esploader.ts b/src/esploader.ts index fb70ecd5..54a9399a 100644 --- a/src/esploader.ts +++ b/src/esploader.ts @@ -678,7 +678,6 @@ export class ESPLoader { if (!detecting) { const chipMagicValue = (await this.readReg(0x40001000)) >>> 0; this.debug("Chip Magic " + chipMagicValue.toString(16)); - this.info("Chip Magic " + chipMagicValue.toString(16)); const chip = await magic2Chip(chipMagicValue); if (this.chip === null) { throw new ESPError(`Unexpected CHIP magic value ${chipMagicValue}. Failed to autodetect chip type.`);