Skip to content

Commit b1030cb

Browse files
1 parent f3c5b2c commit b1030cb

File tree

1 file changed

+2
-2
lines changed
  • source_modules/rtl_sdr_source/src

1 file changed

+2
-2
lines changed

source_modules/rtl_sdr_source/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ class RTLSDRSourceModule : public ModuleManager::Instance {
523523
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
524524
int sampCount = len / 2;
525525
for (int i = 0; i < sampCount; i++) {
526-
_this->stream.writeBuf[i].re = (float)(buf[i * 2] - 127) / 128.0f;
527-
_this->stream.writeBuf[i].im = (float)(buf[(i * 2) + 1] - 127) / 128.0f;
526+
_this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4) / 128.0f;
527+
_this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4) / 128.0f;
528528
}
529529
if (!_this->stream.swap(sampCount)) { return; }
530530
}

0 commit comments

Comments
 (0)