Skip to content
Snippets Groups Projects
Commit ea864e01 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Explicitly set serial port to 8N1

Surely nobody uses anything else...
parent 68c39a08
No related branches found
No related tags found
No related merge requests found
Pipeline #7201 passed
......@@ -164,6 +164,22 @@ modem_connect(struct bbslist *bbs)
return -1;
}
}
if (!comSetParity(com, false, false)) {
if (!bbs->hidepopups)
uifcmsg("Cannot Set Parity", "`Cannot Set Parity`\n\n"
"Cannot open the specified serial device.\n");
conn_api.terminate = -1;
comClose(com);
return -1;
}
if (!comSetBits(com, 8, 1)) {
if (!bbs->hidepopups)
uifcmsg("Cannot Set Data Bits", "`Cannot Set Data Bits`\n\n"
"Cannot open the specified serial device.\n");
conn_api.terminate = -1;
comClose(com);
return -1;
}
if (bbs->conn_type == CONN_TYPE_SERIAL_NORTS)
comLowerRTS(com);
if (!comRaiseDTR(com)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment