[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. a9313260c2c578b16aa01
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: n0nb <n0...@us...> - 2025-09-09 11:04:24
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hamlib -- Ham radio control libraries".
The branch, master has been updated
via a9313260c2c578b16aa01772c85016f75e71ac1d (commit)
from 8f33228a1ae07a8ff9fe10603f99dbbb076b25d2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a9313260c2c578b16aa01772c85016f75e71ac1d
Author: Daniele Forsi <iu...@gm...>
Date: Sun Sep 7 13:19:54 2025 -0700
Replace INT_MAX with FLT_MAX in indi_wrapper.cpp
Closes GitHub issue #1868.
diff --git a/rotators/indi/indi_wrapper.cpp b/rotators/indi/indi_wrapper.cpp
index 0861fd7d0..48c923bfb 100644
--- a/rotators/indi/indi_wrapper.cpp
+++ b/rotators/indi/indi_wrapper.cpp
@@ -22,7 +22,7 @@
#include "indi_wrapper.hpp"
#include <math.h>
-#include <limits.h>
+#include <float.h>
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
@@ -479,8 +479,8 @@ void RotINDIClient::newProperty(INDI::Property *property)
connectDevice(mTelescope->getDeviceName());
}
- mDstAz = INT_MAX;
- mDstEl = INT_MAX;
+ mDstAz = FLT_MAX;
+ mDstEl = FLT_MAX;
}
if (name == "HORIZONTAL_COORD")
-----------------------------------------------------------------------
Summary of changes:
rotators/indi/indi_wrapper.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|