change incoming freq to long long

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

fixes #132
This commit is contained in:
Corey Shields 2018-09-08 11:36:15 -04:00
parent 75384606b8
commit 571d98c924
1 changed files with 2 additions and 2 deletions

View File

@ -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;