mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 05:23:31 +00:00
changes to error handling
readme, changelog updated to reflect changes version bump
This commit is contained in:
@@ -14,7 +14,11 @@ func newButton(i int) button {
|
||||
|
||||
// getter returns the value of a macrobutton parameter
|
||||
func (m *button) getter(mode int) bool {
|
||||
return getMacroStatus(m.index, mode) == 1
|
||||
val, err := getMacroStatus(m.index, mode)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
return val == 1
|
||||
}
|
||||
|
||||
// setter sets the value of a macrobutton parameter
|
||||
|
||||
Reference in New Issue
Block a user