diff --git a/src/syncterm/CHANGES b/src/syncterm/CHANGES index dd46139f5b8b593f330e2bb33eddfd3f3c13cc29..c80c8026bc59ed4573b1ae1330961eee220d1d0c 100644 --- a/src/syncterm/CHANGES +++ b/src/syncterm/CHANGES @@ -9,6 +9,7 @@ Fix crash when editing blank "extra" bbslist entry Support copy/paste in BBS list Show current list path, not default in File Locations Explicitly set serial port to 8N1 +Add support bit data bits, stop bits, and parity Version 1.2rc6 -------------- diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c index a7ea49929af8d067d47a97c4a5389b6baa8d7910..bbd22398206f2f75d35cc83851c6644010d9cd5b 100644 --- a/src/syncterm/bbslist.c +++ b/src/syncterm/bbslist.c @@ -822,7 +822,7 @@ read_item(str_list_t listfile, struct bbslist *entry, char *bbsname, int id, int entry->stop_bits = iniGetUShortInt(section, NULL, "StopBits", 1); if (entry->stop_bits < 1 || entry->stop_bits > 2) entry->stop_bits = 1; - entry->parity = iniGetEnum(section, NULL, "Parity", parity_enum, PARITY_NONE); + entry->parity = iniGetEnum(section, NULL, "Parity", parity_enum, SYNCTERM_PARITY_NONE); /* Log Stuff */ iniGetSString(section, NULL, "LogFile", "", entry->logfile, sizeof(entry->logfile)); diff --git a/src/syncterm/bbslist.h b/src/syncterm/bbslist.h index 8e1fc023f87eb440f426b2062b086d2cd0b02e07..185800e8d7f4e14a6c8f9f1c8b964474a4fe004a 100644 --- a/src/syncterm/bbslist.h +++ b/src/syncterm/bbslist.h @@ -110,9 +110,9 @@ enum { }; enum { - PARITY_NONE, - PARITY_EVEN, - PARITY_ODD, + SYNCTERM_PARITY_NONE, + SYNCTERM_PARITY_EVEN, + SYNCTERM_PARITY_ODD, }; /* NOTE: changing this may require updating sort_order in bbslist.c */ diff --git a/src/syncterm/modem.c b/src/syncterm/modem.c index ac62bd9ebe172f3fc53826802e7bdf6b0121f3cc..1b9c88bab16d6bd1cd286185d3cd1fa2d3176607 100644 --- a/src/syncterm/modem.c +++ b/src/syncterm/modem.c @@ -164,7 +164,7 @@ modem_connect(struct bbslist *bbs) return -1; } } - if (!comSetParity(com, bbs->parity != PARITY_NONE, bbs->parity == PARITY_ODD)) { + if (!comSetParity(com, bbs->parity != SYNCTERM_PARITY_NONE, bbs->parity == SYNCTERM_PARITY_ODD)) { if (!bbs->hidepopups) uifcmsg("Cannot Set Parity", "`Cannot Set Parity`\n\n" "Cannot open the specified serial device.\n"); @@ -209,7 +209,7 @@ modem_connect(struct bbslist *bbs) return -1; } } - if (!comSetParity(com, bbs->parity != PARITY_NONE, bbs->parity == PARITY_ODD)) { + if (!comSetParity(com, bbs->parity != SYNCTERM_PARITY_NONE, bbs->parity == SYNCTERM_PARITY_ODD)) { if (!bbs->hidepopups) uifcmsg("Cannot Set Parity", "`Cannot Set Parity`\n\n" "Cannot open the specified serial device.\n");