Duplicated other changes made to easycom

pull/1248/head
Matthew J. Wolf 2023-03-10 14:28:43 -05:00
rodzic 631a7a5faa
commit a64bb4fc7d
1 zmienionych plików z 1 dodań i 9 usunięć

Wyświetl plik

@ -25,19 +25,11 @@
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h> /* String function definitions */
#include <unistd.h> /* UNIX standard function definitions */
#include <math.h>
#include "hamlib/rotator.h"
#include "serial.h"
#include "misc.h"
#include "register.h"
#include "saebrtrack.h"
@ -109,7 +101,7 @@ saebrtrack_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __func__, az, el);
/* Non Easycom standard */
sprintf(cmdstr, "AZ%05.1f EL%05.1f UP000 XXX DN000 XXX\n", az, el);
SNPRINTF(cmdstr, sizeof(cmdstr), "AZ%05.1f EL%05.1f UP000 XXX DN000 XXX\n", az, el);
retval = saebrtrack_transaction(rot, cmdstr, NULL, 0);