Skip to content

Commit

Permalink
Fix numerical roundup issues in spectrum representation
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Jun 5, 2024
1 parent 77fcee4 commit 0978293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Default/GenericInspector/GenericInspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ GenericInspector::inspectorMessage(Suscan::InspectorMessage const &msg)
p = len / 2;

for (auto i = 0u; i < len; ++i)
data[i] = SU_POWER_DB_RAW(data[i]);
data[i] = SU_POWER_DB_RAW(data[i] + 1e-20f);

for (auto i = 0u; i < len / 2; ++i) {
x = data[i];
Expand Down

0 comments on commit 0978293

Please sign in to comment.