Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

exec executes the file char by char #76

@crasu

Description

@crasu

Running this:

#nodemcu-uploader --baud 115200 exec dfplayer-test.lua 

Result in dfplayer-test.lua being executed char by char:

opening port /dev/ttyUSB0 with 115200 baud
Execute dfplayer-test.lua
> p
>> =
>> r
> e
>> q
stdin:2: '=' expected near 'q'
> u
...

Changing utils.py to this seems to fix it:

def from_file(path):
    with open(path, 'rb') as f:
        content = f.readlines()
    return content if PY2 else [ c.decode(ENCODING) for c in content ]

But causes a lot of other problems ;-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions