Skip to content

Commit

Permalink
Update frequency base to output more accurate tones
Browse files Browse the repository at this point in the history
  • Loading branch information
pctj101 committed Sep 27, 2015
1 parent 9b337de commit fa1628c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,7 @@ void pwmToneWrite (int pin, int freq)
pwmWrite (pin, 0) ; // Off
else
{
range = 600000 / freq ;
range = 200000 / freq ;
pwmSetRange (range) ;
pwmWrite (pin, range / 2) ;
}
Expand Down

0 comments on commit fa1628c

Please sign in to comment.