From db005ba3bfa60f4f8a08ec24d728cfbac6831b90 Mon Sep 17 00:00:00 2001 From: Vanya Sergeev Date: Tue, 5 Jul 2016 15:25:32 -0700 Subject: [PATCH] blocks/sources/rtlsdr: fix typo in comment --- radio/blocks/sources/rtlsdr.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/blocks/sources/rtlsdr.lua b/radio/blocks/sources/rtlsdr.lua index 161e9446a..add322989 100644 --- a/radio/blocks/sources/rtlsdr.lua +++ b/radio/blocks/sources/rtlsdr.lua @@ -176,10 +176,10 @@ local function read_async_callback_factory(pipes) local out = types.ComplexFloat32.vector() local function read_async_callback(buf, len, ctx) - -- Size output vector + -- Resize output vector out:resize(len/2) - -- Convert to complex u8 in buf to complex floats in output vector + -- Convert complex u8 in buf to complex floats in output vector for i = 0, out.length-1 do out.data[i].real = (buf[2*i] - 127.5) * (1/127.5) out.data[i].imag = (buf[2*i+1] - 127.5) * (1/127.5)