#include <omnithread.h>
#include <stdexcept>
#include <iostream>
#include <omnithread.h>
#include <stdexcept>
#include <iostream>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
bool
msdd_source_base::set_pga (int which, double gain)
{
bool
msdd_source_base::set_pga (int which, double gain)
{
- if (gain >= PGA_MIN & gain <= PGA_MAX) {
+ if (gain >= PGA_MIN && gain <= PGA_MAX) {
pimpl->d_gain = gain;
return true;
}
pimpl->d_gain = gain;
return true;
}
bool msdd_source_base::set_desired_packet_size (int which, unsigned long packet_size) {
bool result(false);
bool msdd_source_base::set_desired_packet_size (int which, unsigned long packet_size) {
bool result(false);
- if (pimpl->d_desired_sample_size < 2^32) { // FIXME: find maximum sample request for MSDD check if greater than
+ //if (pimpl->d_desired_sample_size < 2^32) { // FIXME: find maximum sample request for MSDD check if greater than
+ if (pimpl->d_desired_sample_size < LONG_MAX) { // FIXME: find maximum sample request for MSDD check if greater than
pimpl->d_desired_sample_size = packet_size;
pimpl->d_desired_sample_size = packet_size;
#include <msdd_source_simple.h>
#include <gr_io_signature.h>
#include <msdd_source_simple.h>
#include <gr_io_signature.h>