Skip to content

Commit

Permalink
fix missing float declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Aug 26, 2024
1 parent 7336b19 commit eb19f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source_modules/rtl_sdr_source/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ class RTLSDRSourceModule : public ModuleManager::Instance {
RTLSDRSourceModule* _this = (RTLSDRSourceModule*)ctx;
int sampCount = len / 2;
for (int i = 0; i < sampCount; i++) {
_this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4) / 128.0f;
_this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4) / 128.0f;
_this->stream.writeBuf[i].re = ((float)buf[i * 2] - 127.4f) / 128.0f;
_this->stream.writeBuf[i].im = ((float)buf[(i * 2) + 1] - 127.4f) / 128.0f;
}
if (!_this->stream.swap(sampCount)) { return; }
}
Expand Down

0 comments on commit eb19f19

Please sign in to comment.