freebsd-ports/comms/svxlink/files/patch-svxlink_trx_ToneDecoder.cpp
Stephen Hurd 7d6f65abc1 Update to 14.08
Switch to cmake
Switch to github
Add the STATIC, DOCS, ALSA, and OSS options
Make a master port so comms/qtel can be a slave port
2015-01-07 12:12:22 +00:00

20 lines
495 B
C++

--- src/svxlink/trx/ToneDetector.cpp.orig 2014-04-09 23:45:04.000000000 -0700
+++ src/svxlink/trx/ToneDetector.cpp 2014-04-09 23:47:33.000000000 -0700
@@ -335,7 +335,7 @@
{
if (thresh > 0.0f)
{
- det_par->peak_thresh = exp10f(thresh/10.0f);
+ det_par->peak_thresh = powf(10, thresh/10.0f);
}
else
{
@@ -348,7 +348,7 @@
{
if (thresh > 0.0f)
{
- undet_par->peak_thresh = exp10f(thresh/10.0f);
+ undet_par->peak_thresh = powf(10, thresh/10.0f);
}
else
{