Skip to content

Commit

Permalink
blocks/sources/rtlsdr: fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Jul 10, 2016
1 parent efae727 commit db005ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radio/blocks/sources/rtlsdr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db005ba

Please sign in to comment.