Merge pull request #1243 from kholia/simulator-fixes

Minor fixes for FT-747GX simulator
pull/1245/head
Michael Black 2023-03-06 09:48:00 -06:00 zatwierdzone przez GitHub
commit 2622113d2f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -1,12 +1,11 @@
// can run this using rigctl/rigctld and socat pty devices // can run this using rigctl/rigctld and socat pty devices
// gcc -o simft897 simft897.c // gcc -o simft747gx simft747gx.c
#define _XOPEN_SOURCE 600 #define _XOPEN_SOURCE 600
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include "../include/hamlib/rig.h"
#define BUFSIZE 256 #define BUFSIZE 256
@ -82,9 +81,6 @@ int openPort(char *comport) // doesn't matter for using pts devices
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
unsigned char buf[256]; unsigned char buf[256];
unsigned char *pbuf;
int n;
again: again:
int fd = openPort(argv[1]); int fd = openPort(argv[1]);