Polarisru / updiprog

Pure-C utility for programming AVR devices with UPDI interface using a standard TTL serial port
BSD 2-Clause "Simplified" License
37 stars 21 forks source link

trim line ending whitespace when reading ihex file #4

Closed ansemjo closed 4 years ago

ansemjo commented 4 years ago

Apply the patch from my issue comment https://github.com/Polarisru/updiprog/issues/3#issuecomment-589848601 and fix #3.

Description: trim trailing whitespace on lines when reading ihex files to correct string length expectations irrespective of CRLF or LF ending.

Polarisru commented 4 years ago

I have checked your solution, it seems to be a very good one and works also for Windows line format!

Thank you for your time!