Skip to content

Extra empty lines in files read via USB serial #285

@FoamyGuy

Description

@FoamyGuy

CircuitPython Version

Adafruit CircuitPython 9.2.3 on 2025-01-17; Adafruit Mini Sparkle Motion with ESP32

Workflow(s)

USB

Browser(s)

Google Chrome Version 132.0.6834.83 (Official Build) (64-bit)

Console Log

Steps

  1. Connect to ESP32 based device using USB mode (it will have to use repl file transfer)
  2. open a file from the device
  3. File shown in the editor has extra empty lines inserted every other line.

Description

When reading via USB the files come accross with extra empty lines inserted i.e.

import board
import neopixel

from adafruit_led_animation.animation.comet import Comet
from adafruit_led_animation.animation.rainbow import Rainbow
from adafruit_led_animation.color import GREEN

becomes:

import board

import neopixel



from adafruit_led_animation.animation.comet import Comet

from adafruit_led_animation.animation.rainbow import Rainbow

from adafruit_led_animation.color import GREEN

Additional information

Using the web mode instead of USB on the same device and browser works correctly and the file is shown normally without the extra lines inserted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions