Create new config format

This commit is contained in:
2021-08-24 08:33:41 -07:00
parent b186f77bea
commit 91f7132d5e
5 changed files with 38 additions and 22 deletions

View File

@@ -85,9 +85,9 @@ func initMusicCtrl(dev *infinitime.Device) error {
case infinitime.MusicEventPrev:
player.Prev()
case infinitime.MusicEventVolUp:
player.VolUp(viper.GetUint("music.volInterval"))
player.VolUp(viper.GetUint("music.vol.interval"))
case infinitime.MusicEventVolDown:
player.VolDown(viper.GetUint("music.volInterval"))
player.VolDown(viper.GetUint("music.vol.interval"))
}
}
}()