Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
andlo committed Oct 22, 2018
1 parent 4f0fc51 commit 7ccd807
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def auto_set_volume(self, message):
if volume != self.volume and volume != None:
self.mixer.setvolume(volume)
self.volume = volume
high = self.settings.get('Highest messurement') - ((10 * range) / 100):
low = self.settings.get('Lowest messurement') + ((30 * range) / 100):
self.log.info("Lowlevel: " + low + " highlevel: " + high)
self.log.info("Mesure mic: " + str(self.meter_thresh) +
" Setting volume to :" + str(volume) + "%")
else:
Expand Down

0 comments on commit 7ccd807

Please sign in to comment.