Commit 571d98c9 authored by Corey Shields's avatar Corey Shields

change incoming freq to long long

allows for higher than 2.1ghz frequencies to be submitted via rigctl.

fixes #132
parent 75384606
......@@ -320,12 +320,12 @@ namespace gr
double
tcp_rigctl_msg_source_impl::get_freq_from_buf (const uint8_t* buf)
{
long int f;
long long int f;
char *end;
f = strtol ((char *) buf, &end, 10);
/* Check for various possible errors */
if ((errno == ERANGE && (f == LONG_MAX || f == LONG_MIN))
if ((errno == ERANGE && (f == LLONG_MAX || f == LLONG_MIN))
|| (errno != 0 && f == 0)) {
LOG_WARN("Invalid rigctl command");
f = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment