kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
bc6c14e430
commit
0450b36c67
|
@ -2,7 +2,7 @@ LOCAL_PATH:= $(call my-dir)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := apex.c sharedloop.c
|
LOCAL_SRC_FILES := apex.c apex.h sharedloop.c
|
||||||
LOCAL_MODULE := apex
|
LOCAL_MODULE := apex
|
||||||
|
|
||||||
LOCAL_CFLAGS :=
|
LOCAL_CFLAGS :=
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libhamlib-apex.la
|
noinst_LTLIBRARIES = libhamlib-apex.la
|
||||||
libhamlib_apex_la_SOURCES = apex.c sharedloop.c
|
libhamlib_apex_la_SOURCES = apex.c apex.h sharedloop.c
|
||||||
|
|
||||||
EXTRA_DIST = Android.mk
|
EXTRA_DIST = Android.mk
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
float apex_azimuth;
|
float apex_azimuth;
|
||||||
|
|
||||||
char apex_info[64];
|
char apex_info[65];
|
||||||
|
|
||||||
static pthread_t apex_read_thread;
|
static pthread_t apex_read_thread;
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ static int apex_get_string(ROT *rot, char *s, int maxlen)
|
||||||
retval = read_string(&rs->rotport, (unsigned char *)buf,
|
retval = read_string(&rs->rotport, (unsigned char *)buf,
|
||||||
sizeof(buf),
|
sizeof(buf),
|
||||||
"\n", strlen("\n"), sizeof(buf), 1);
|
"\n", strlen("\n"), sizeof(buf), 1);
|
||||||
strncpy(s, buf, maxlen);
|
strncpy(s, buf, 64);
|
||||||
strtok(s, "\r\n"); // truncate any CR/LF
|
strtok(s, "\r\n"); // truncate any CR/LF
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: %d bytes '%s'\n", __func__, retval, s);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: %d bytes '%s'\n", __func__, retval, s);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue