diff --git a/Transceiver52M/Complex.h b/Transceiver52M/Complex.h index 32eb18f..d02944b 100644 --- a/Transceiver52M/Complex.h +++ b/Transceiver52M/Complex.h @@ -257,7 +257,6 @@ template std::ostream& operator<<(std::ostream& os, const Complex=0) { os << "+"; } os << z.i << "j"; - os << "\n"; return os; } diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index caf7bf0..f5fa822 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -36,12 +36,12 @@ #include "config.h" #endif -#define USB_LATENCY_INTRVL (10,0) +#define USB_LATENCY_INTRVL 10,0 #if USE_UHD -# define USB_LATENCY_MIN (6,7) +# define USB_LATENCY_MIN 6,7 #else -# define USB_LATENCY_MIN (1,1) +# define USB_LATENCY_MIN 1,1 #endif Transceiver::Transceiver(int wBasePort, diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp index 78e9e57..6fc0c19 100644 --- a/Transceiver52M/UHDDevice.cpp +++ b/Transceiver52M/UHDDevice.cpp @@ -884,7 +884,7 @@ ssize_t smpl_buf::read(void *buf, size_t len, TIMESTAMP timestamp) // How many samples should be copied size_t num_smpls = time_end - timestamp; - if (num_smpls > len); + if (num_smpls > len) num_smpls = len; // Starting index diff --git a/TransceiverRAD1/Complex.h b/TransceiverRAD1/Complex.h index 3a1b557..497cc91 100644 --- a/TransceiverRAD1/Complex.h +++ b/TransceiverRAD1/Complex.h @@ -267,7 +267,6 @@ template std::ostream& operator<<(std::ostream& os, const Complex=0) { os << "+"; } os << z.i << "j"; - os << "\n"; return os; }