mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-06 16:05:09 -04:00
Fix the "changed modes" problem in soundout.cpp.
Move the ptt function into the Qt-managed code. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2699 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -25,18 +25,24 @@ int ptt_(int *nport, int *ntx, int *iptt)
|
||||
}
|
||||
|
||||
if(*ntx && open) {
|
||||
EscapeCommFunction(hFile,3);
|
||||
EscapeCommFunction(hFile,5);
|
||||
i3=EscapeCommFunction(hFile,3);
|
||||
i5=EscapeCommFunction(hFile,5);
|
||||
*iptt=1;
|
||||
}
|
||||
|
||||
else {
|
||||
EscapeCommFunction(hFile,4);
|
||||
EscapeCommFunction(hFile,6);
|
||||
EscapeCommFunction(hFile,9);
|
||||
i4=EscapeCommFunction(hFile,4);
|
||||
i6=EscapeCommFunction(hFile,6);
|
||||
i9=EscapeCommFunction(hFile,9);
|
||||
i00=CloseHandle(hFile);
|
||||
*iptt=0;
|
||||
open=0;
|
||||
}
|
||||
if(i3==0) return 3;
|
||||
if(i4==0) return 4;
|
||||
if(i5==0) return 5;
|
||||
if(i6==0) return 6;
|
||||
if(i9==0) return 9;
|
||||
if(i00==0) return 10;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user