aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Vymetálek <pavel@vym.cz>2023-01-11 11:48:01 +0100
committerPavel Vymetálek <pavel@vym.cz>2023-01-11 11:48:01 +0100
commitaf2ed1c080cc5a8635a498b9dbcc66d230024969 (patch)
tree5ac5b7fc45f5a187ab2f5ff96b45adf90db12ed8
parent087ff0d8a5e036c6cff66c97cfa1a322f55fadfa (diff)
downloadsercp-pc-af2ed1c080cc5a8635a498b9dbcc66d230024969.tar.gz
Serial port inicialization with flow control "none" for Windows
-rw-r--r--sercp.c9
-rw-r--r--sercp.rc8
2 files changed, 11 insertions, 6 deletions
diff --git a/sercp.c b/sercp.c
index 9bfb831..a726055 100644
--- a/sercp.c
+++ b/sercp.c
@@ -693,8 +693,13 @@ int OpenUart() {
sDCB.fAbortOnError = TRUE;
sDCB.fOutxDsrFlow = FALSE;
sDCB.fDtrControl = DTR_CONTROL_DISABLE;
- sDCB.fRtsControl = RTS_CONTROL_HANDSHAKE;
- sDCB.fOutxCtsFlow = TRUE;
+ if (is_flow_control_none) {
+ sDCB.fRtsControl = RTS_CONTROL_DISABLE;
+ sDCB.fOutxCtsFlow = FALSE;
+ } else {
+ sDCB.fRtsControl = RTS_CONTROL_HANDSHAKE;
+ sDCB.fOutxCtsFlow = TRUE;
+ }
if (SetCommState(serial_fd, &sDCB) == 0) {
return (-1);
}
diff --git a/sercp.rc b/sercp.rc
index 24679c0..b5cd913 100644
--- a/sercp.rc
+++ b/sercp.rc
@@ -1,8 +1,8 @@
// RC file, codepage utf-8 !!!!!
#include <windows.h> // include for version info constants
1 VERSIONINFO
-FILEVERSION 0,3,6,0
-PRODUCTVERSION 0,3,6,0
+FILEVERSION 0,3,7,0
+PRODUCTVERSION 0,3,7,0
FILETYPE VFT_APP
{
BLOCK "StringFileInfo"
@@ -10,14 +10,14 @@ FILETYPE VFT_APP
BLOCK "040904E4"
{
VALUE "CompanyName", "vym.cz"
- VALUE "FileVersion", "0.3.6"
+ VALUE "FileVersion", "0.3.7"
VALUE "FileDescription", "sercp - serial copy for ZX Spectrum"
VALUE "InternalName", "sercp"
VALUE "LegalCopyright", "GNU GPL v3 or above"
VALUE "LegalTrademarks", "Pavel Vymetálek"
VALUE "OriginalFilename", "sercp"
VALUE "ProductName", "sercp"
- VALUE "ProductVersion", "0.3.6"
+ VALUE "ProductVersion", "0.3.7"
VALUE "Build environment", "Linux: Mingw64, x86_64"
}
}