8000 Fix/del leftover symbols - v 1.5.1 by ubidefeo · Pull Request #20 · arduino/micropython.js · GitHub
[go: up one dir, main page]

Skip to content

Fix/del leftover symbols - v 1.5.1 #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Removed leftover 'file' and renamed variable to 'f'.
Signed-off-by: ubi de feo <me@ubidefeo.com>
  • Loading branch information
ubidefeo committed Dec 9, 2024
commit 2c26a586ec935f6b7f3406f87a21a45b4a4254b3
5 changes: 3 additions & 2 deletions micropython.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,13 @@ class MicroPythonBoard {
let command = `import uos\n`
command += `try:\n`
command += ` l=[]\n`
command += ` for file in uos.ilistdir("${folderPath}"):\n`
command += ` l.append(list(file))\n`
command += ` for f in uos.ilistdir("${folderPath}"):\n`
command += ` l.append(list(f))\n`
command += ` print(l)\n`
command += `except OSError:\n`
command += ` print([])\n`
command += `del l\n`
command += `del f\n`
await this.enter_raw_repl()
let output = await this.exec_raw(command)
await this.exit_raw_repl()
Expand Down
0