generated from thinkode/modelRepository
add MIDI discovery, connection and events
This commit is contained in:
@@ -139,7 +139,6 @@ func (f *OS2LFinder) GetPeripheralSettings(peripheralID string) (map[string]any,
|
||||
log.Error().Str("file", "OS2LFinder").Str("peripheralID", peripheralID).Msg("unable to get this peripheral from the OS2L finder")
|
||||
return nil, fmt.Errorf("unable to found the peripheral")
|
||||
}
|
||||
log.Debug().Str("file", "OS2LFinder").Str("peripheralID", peripheralID).Msg("peripheral found by the OS2L finder")
|
||||
return peripheral.GetSettings(), nil
|
||||
}
|
||||
|
||||
@@ -148,8 +147,7 @@ func (f *OS2LFinder) SetPeripheralSettings(ctx context.Context, peripheralID str
|
||||
// Return the specified peripheral
|
||||
peripheral, found := f.saved[peripheralID]
|
||||
if !found {
|
||||
log.Error().Str("file", "OS2LFinder").Str("peripheralID", peripheralID).Msg("unable to get this peripheral from the FTDI finder")
|
||||
return fmt.Errorf("unable to found the peripheral")
|
||||
return fmt.Errorf("unable to found the FTDI peripheral")
|
||||
}
|
||||
|
||||
// Set the peripheral settings
|
||||
|
||||
Reference in New Issue
Block a user