Merge pull request #331 from MycroftAI/issue/fix-eyes-colume

added the eye volume event
pull/335/head^2
Arron Atchison 2016-08-17 11:09:58 -05:00 committed by GitHub
commit 6c1c9c2902
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class VolumeSkill(MycroftSkill):
mixer = Mixer()
old_level = self.volume_to_level(mixer.getvolume()[0])
new_level = self.bound_level(old_level + change)
self.enclosure.eyes_volume(new_level)
mixer.setvolume(self.level_to_volume(new_level))
return new_level, new_level != old_level