From ba030b5e4460a06cc4899336800d7d3e28733b3c Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 29 May 2022 00:18:03 +0200 Subject: [PATCH] update stream fix --- SoapyRadioberryStreaming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoapyRadioberryStreaming.cpp b/SoapyRadioberryStreaming.cpp index 37e20ba..a26f6c9 100644 --- a/SoapyRadioberryStreaming.cpp +++ b/SoapyRadioberryStreaming.cpp @@ -245,7 +245,7 @@ int SoapyRadioberry::writeStream(SoapySDR::Stream *stream, const void * const *b tx.i8TxBuffer[2] = (unsigned char)(((-1 * itarget_buffer[j + 1]) & 0xff00) >> 8); tx.i8TxBuffer[3] = (unsigned char)((-1 * itarget_buffer[j + 1]) & 0xff); - ret = 4; //write(fd_rb, &tx, sizeof(uint32_t)); + ret = write(fd_rb, &tx, sizeof(uint32_t)); j += 2; } }