From a9b2907c76de16a1b770d5df49643b6ac4602736 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sun, 29 Nov 2020 12:54:12 -0600 Subject: [PATCH] Force rc2800 az/el to no decimal point value https://github.com/Hamlib/Hamlib/issues/451 (cherry picked from commit 511435c73e9a9164085117b77e9fbb3049da31ac) --- rotators/m2/rc2800.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rotators/m2/rc2800.c b/rotators/m2/rc2800.c index fcbf5b62c..af5d147d1 100644 --- a/rotators/m2/rc2800.c +++ b/rotators/m2/rc2800.c @@ -247,7 +247,7 @@ rc2800_rot_set_position(ROT *rot, azimuth_t az, elevation_t el) rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __func__, az, el); - num_sprintf(cmdstr, "A%3f"CR, az); + num_sprintf(cmdstr, "A%3.0f"CR, az); retval1 = rc2800_transaction(rot, cmdstr, NULL, 0); if (rot->caps->rot_model == ROT_MODEL_RC2800) @@ -255,7 +255,7 @@ rc2800_rot_set_position(ROT *rot, azimuth_t az, elevation_t el) /* do not overwhelm the MCU? */ hl_usleep(200 * 1000); - num_sprintf(cmdstr, "E%3f"CR, el); + num_sprintf(cmdstr, "E%3.0f"CR, el); retval2 = rc2800_transaction(rot, cmdstr, NULL, 0); if (retval1 == retval2) @@ -380,7 +380,7 @@ const struct rot_caps rc2800_rot_caps = ROT_MODEL(ROT_MODEL_RC2800), .model_name = "RC2800", .mfg_name = "M2", - .version = "20201129.0", + .version = "20201129.1", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rot_type = ROT_TYPE_AZEL, @@ -411,7 +411,7 @@ const struct rot_caps rc2800az_rot_caps = ROT_MODEL(ROT_MODEL_RC2800AZ), .model_name = "RC2800AZ", .mfg_name = "M2", - .version = "20201128.0", + .version = "20201129.1", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rot_type = ROT_TYPE_AZIMUTH,