Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed May 31, 2024
1 parent 2953127 commit ced3737
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/esploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1422,14 +1422,14 @@ export class ESPLoader {

if (encryptedFiles && encryptedFiles.length > 0) {
let doWrite = true;
for (let f of encryptedFiles) {
for (const f of encryptedFiles) {
if (f.encrypted && this.chip.SUPPORTS_ENCRYPTED_FLASH && f.address % this.chip.FLASH_ENCRYPTED_WRITE_ALIGN) {
doWrite = false;
this.info(`File at address ${f.address} is not %d byte aligned, can't flash encrypted`);
}
}
if (!doWrite) {
let errMsg =
const errMsg =
"Can't perform encrypted flash write,\n" + "consult Flash Encryption documentation for more information";
this.debug(errMsg);
throw new ESPError(errMsg);
Expand All @@ -1442,9 +1442,8 @@ export class ESPLoader {
"Flashing plaintext binary may brick your device! ",
);
}

// TO DO
// Add esp.get_security_info
// Add esp.get_security_info
// esp.get_encrypted_download_disabled()
// and esp.get_flash_encryption_enabled()

Expand Down

0 comments on commit ced3737

Please sign in to comment.