Skip to content

Commit

Permalink
Fix dB amplitude bug in TCL function CW::play
Browse files Browse the repository at this point in the history
  • Loading branch information
sm0svx committed Feb 18, 2018
1 parent 45a85cd commit 5008ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/svxlink/svxlink/CW.tcl
Expand Up @@ -167,7 +167,7 @@ proc loadDefaults {} {
# pitch - The CW pitch in Hz
# amp - The CW amplitude in dBFS
#
proc play {txt {cpm 0} {pitch 0} {amp 0}} {
proc play {txt {cpm 0} {pitch 0} {amp -1000000}} {
variable short_len;
variable long_len;
variable char_spacing;
Expand All @@ -186,7 +186,7 @@ proc play {txt {cpm 0} {pitch 0} {amp 0}} {
setPitch $pitch
set load_defaults 1
}
if {$amp > 0} {
if {$amp > -1000000} {
setAmplitude $amp
set load_defaults 1
}
Expand Down
2 changes: 1 addition & 1 deletion src/versions
Expand Up @@ -8,7 +8,7 @@ LIBECHOLIB=1.3.3
LIBASYNC=1.5.99.1

# SvxLink versions
SVXLINK=1.6.99.8
SVXLINK=1.6.99.9
MODULE_HELP=1.0.0
MODULE_PARROT=1.1.1
MODULE_ECHOLINK=1.4.99.0
Expand Down

0 comments on commit 5008ece

Please sign in to comment.