generated from thinkode/modelRepository
peripheral setting save
This commit is contained in:
@@ -46,6 +46,12 @@ func (p *MIDIPeripheral) Deactivate(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetPeripheralSetting sets a specific setting for this peripheral
|
||||
func (p *MIDIPeripheral) SetPeripheralSetting(settingName string, settingValue interface{}) error {
|
||||
p.settings[settingName] = settingValue
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetDeviceProperty - not implemented for this kind of peripheral
|
||||
func (p *MIDIPeripheral) SetDeviceProperty(context.Context, uint32, uint32, byte) error {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user