Refs #407. Removed redundant carriage return when writing S-records in LibOpenBLT.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@371 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2017-09-29 15:42:54 +00:00
parent 649a377623
commit ebe0434715
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -293,7 +293,7 @@ static bool SRecParserSaveToFile (char const * firmwareFile)
if (result) if (result)
{ {
/* Add the S0-record. */ /* Add the S0-record. */
if (fprintf(fp, "%s\r\n", line) < 0) if (fprintf(fp, "%s\n", line) < 0)
{ {
/* Could not write line to the file. */ /* Could not write line to the file. */
result = false; result = false;
@ -339,7 +339,7 @@ static bool SRecParserSaveToFile (char const * firmwareFile)
break; break;
} }
/* Add the data record. */ /* Add the data record. */
if (fprintf(fp, "%s\r\n", line) < 0) if (fprintf(fp, "%s\n", line) < 0)
{ {
/* Could not write line to the file. Abort loop. */ /* Could not write line to the file. Abort loop. */
result = false; result = false;
@ -362,7 +362,7 @@ static bool SRecParserSaveToFile (char const * firmwareFile)
if (result) if (result)
{ {
/* Add the termination record. */ /* Add the termination record. */
if (fprintf(fp, "%s\r\n", line) < 0) if (fprintf(fp, "%s\n", line) < 0)
{ {
/* Could not write line to the file. */ /* Could not write line to the file. */
result = false; result = false;

Binary file not shown.