Skip to content

Commit

Permalink
Fix tcp serial ports (#1596)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitris Panokostas <midwan@gmail.com>
  • Loading branch information
LIV2 and midwan authored Jan 16, 2025
1 parent 9a76781 commit 81771d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/osdep/amiberry_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,8 @@ static int opentcp (const TCHAR *sername)

int openser (const TCHAR *sername)
{
if (!_tcsnicmp(sername, _T("TCP://"), 6)) {
return opentcp(sername + 6);
}
if (!_tcsnicmp(sername, _T("TCP:"), 4)) {
return opentcp(sername + 4);
return opentcp(sername);
}

if (sp_get_port_by_name(sername, &port) != SP_OK) {
Expand Down

0 comments on commit 81771d7

Please # to comment.