Skip to content

Commit

Permalink
[protocol][fs] fix line ending for non-atari systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Feb 14, 2025
1 parent fa35a49 commit 1d73914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/device/rs232/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ rs232Network::rs232Network()
transmitBuffer->clear();
specialBuffer->clear();

json.setLineEnding("\x9B"); // use ATASCII EOL for JSON records
json.setLineEnding("\r\n"); // use ATASCII EOL for JSON records
}

/**
Expand Down
3 changes: 3 additions & 0 deletions lib/network-protocol/FS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ bool NetworkProtocolFS::open_file()
bool NetworkProtocolFS::open_dir()
{
openMode = DIR;
#ifndef BUILD_ATARI
this->setLineEnding("\r\n");
#endif /* BUILD_RS232 */
dirBuffer.clear();
dirBuffer.shrink_to_fit();
update_dir_filename(opened_url);
Expand Down

0 comments on commit 1d73914

Please sign in to comment.