The attached patch performs more complete COM port initialization on Win32 to "clear out" settings in the control panel.

Should fix the issue reported by WB8ILI if he's using Windows.
Index: fdmdv2_main.cpp
===================================================================
--- fdmdv2_main.cpp	(revision 1590)
+++ fdmdv2_main.cpp	(working copy)
@@ -604,9 +604,20 @@
 
 		/* Force N-8-1 mode: */
 		if(GetCommState(com_handle, &dcb)==TRUE) {
-			dcb.ByteSize	= 8;
-			dcb.Parity		= NOPARITY;
-			dcb.StopBits	= ONESTOPBIT;
+			dcb.ByteSize		= 8;
+			dcb.Parity			= NOPARITY;
+			dcb.StopBits		= ONESTOPBIT;
+			dcb.DCBlength		= sizeof(DCB);
+			dcb.fBinary			= TRUE;
+			dcb.fOutxCtsFlow	= FALSE;
+			dcb.fOutxDsrFlow	= FALSE;
+			dcb.fDtrControl		= DTR_CONTROL_DISABLE;
+			dcb.fDsrSensitivity	= FALSE;
+			dcb.fTXContinueOnXoff= TRUE;
+			dcb.fOutX			= FALSE;
+			dcb.fInX			= FALSE;
+			dcb.fRtsControl		= RTS_CONTROL_DISABLE;
+			dcb.fAbortOnError	= FALSE;
 			SetCommState(com_handle, &dcb);
 		}
 	}
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to