generated from thinkode/modelRepository
create subpackages for different endpoints type
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/wailsapp/wails/v2/pkg/runtime"
|
||||
@@ -165,12 +164,6 @@ func (h *Manager) SetEndpointSettings(ctx context.Context, endpointSN string, se
|
||||
|
||||
// Start starts to find new endpoint events
|
||||
func (h *Manager) Start(ctx context.Context) error {
|
||||
|
||||
// Register all the providers to use as hardware scanners
|
||||
h.RegisterProvider(NewFTDIProvider(3 * time.Second))
|
||||
h.RegisterProvider(NewOS2LProvider())
|
||||
h.RegisterProvider(NewMIDIProvider(3 * time.Second))
|
||||
|
||||
for providerName, provider := range h.providers {
|
||||
|
||||
// Initialize the provider
|
||||
|
||||
Reference in New Issue
Block a user