From 55b0599b752d5cd5c3e1ec1791624aaf8d8f3dbb Mon Sep 17 00:00:00 2001 From: George Baltz N3GB Date: Wed, 25 Jun 2025 10:41:55 -0400 Subject: [PATCH] Stop the blithering --- include/hamlib/rig.h | 2 +- include/hamlib/rotator.h | 2 -- src/sprintflst.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index a7fd2bb4f..a72e47474 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -286,7 +286,7 @@ typedef struct s_rig RIG; #define HAMLIB_MAX_CAL_LENGTH 32 /* max calibration plots in cal_table_t */ #define HAMLIB_MAX_MODES 63 #define HAMLIB_MAX_VFOS 31 -#define HAMLIB_MAX_ROTORS 63 +#define HAMLIB_MAX_ROTORS 31 #define HAMLIB_MAX_VFO_OPS 31 #define HAMLIB_MAX_RSCANS 31 #define HAMLIB_MAX_SNAPSHOT_PACKET_SIZE 16384 /* maximum number of bytes in a UDP snapshot packet */ diff --git a/include/hamlib/rotator.h b/include/hamlib/rotator.h index 10889cb97..0a183c668 100644 --- a/include/hamlib/rotator.h +++ b/include/hamlib/rotator.h @@ -358,8 +358,6 @@ typedef enum { ROT_STATUS_OVERLAP_LEFT = (1 << 14), /*!< The azimuth rotator has rotated left (CCW) past 0 degrees. */ ROT_STATUS_OVERLAP_RIGHT = (1 << 16), /*!< The azimuth rotator has rotated right (CW) past 360 degrees. */ } rot_status_t; -// Update this if any additions to status definitions -#define HAMLIB_MAX_ROTOR_STATUS 16 //! @cond Doxygen_Suppress /* So far only used in tests/sprintflst.c. */ diff --git a/src/sprintflst.c b/src/sprintflst.c index da0b96521..d1ae9758b 100644 --- a/src/sprintflst.c +++ b/src/sprintflst.c @@ -819,7 +819,7 @@ int rot_sprintf_status(char *str, int nlen, rot_status_t status) return 0; } - for (i = 0; i <= HAMLIB_MAX_ROTOR_STATUS; i++) + for (i = 0; i <= HAMLIB_MAX_ROTORS; i++) { const char *sv = rot_strstatus(status & ROT_STATUS_N(i));