Sat, 01 Jul 2023 17:54:30 +0200
MicroPython
- Changed the putData() method of the 'BaseDevice' class to send lines with '\n' as eol indicator.
src/eric7/MicroPython/Devices/DeviceBase.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/MicroPython/Devices/DeviceBase.py Fri Jun 30 13:18:11 2023 +0200 +++ b/src/eric7/MicroPython/Devices/DeviceBase.py Sat Jul 01 17:54:30 2023 +0200 @@ -848,9 +848,9 @@ if not deviceFileName: raise OSError("Missing device file name") - # convert eol '\r' - content = content.replace(b"\r\n", b"\r") - content = content.replace(b"\n", b"\r") + # convert eol to '\n' + content = content.replace(b"\r\n", b"\n") + content = content.replace(b"\r", b"\n") commands = [ "fd = open('{0}', 'wb')".format(deviceFileName),