Skip to content

Value 2652 downloaded incorrectly #319

@andrzej555752

Description

@andrzej555752

When downloading from an esp32 to a PC a file containing value 2652 (a wav file for example) this value is converted to 28252 causing glitches in audio file.
The bug can be easily reproduced - run the code:

import struct
f = open("data.raw", "wb")
val = struct.pack('<h', 2528)
f.write(val)
val = struct.pack('<h', 2652)
f.write(val)
val = struct.pack('<h', 2528)
f.write(val)
f.close()

then download "data.raw" and compare the content (2528 28252 2528 on a PC). When downloaded with Thonny the content remains unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions