Skip to content

Commit

Permalink
[rs232][network] Fix line endings to \r\n. same intent, try at differ…
Browse files Browse the repository at this point in the history
…ent point.
  • Loading branch information
tschak909 committed Feb 14, 2025
1 parent a2a3ab2 commit fa35a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/device/rs232/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ void rs232Network::rs232_open()

// TODO: Finally, go ahead and let the parsers know
json.setProtocol(protocol);
json.setLineEnding("\r\n");
protocol->setLineEnding("\r\n");
channelMode = PROTOCOL;

// And signal complete!
Expand Down Expand Up @@ -897,7 +899,6 @@ bool rs232Network::instantiate_protocol()
return false;
}

protocol->setLineEnding("\r\n");
Debug_printf("rs232Network::instantiate_protocol() - Protocol %s created.\n", urlParser->scheme.c_str());
return true;
}
Expand Down

0 comments on commit fa35a49

Please sign in to comment.