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:
parent
75384606b8
commit
571d98c924
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue