add audio support, trying to manage MSD device
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func (h *Hid) OpenNoLock() {
|
||||
log.Debug("OpenNoLock hid")
|
||||
var err error
|
||||
h.CloseNoLock()
|
||||
|
||||
@@ -39,6 +40,7 @@ func (h *Hid) Open() {
|
||||
}
|
||||
|
||||
func (h *Hid) CloseNoLock() {
|
||||
log.Debug("CloseNoLock")
|
||||
for _, file := range []*os.File{h.g0, h.g1, h.g2} {
|
||||
if file != nil {
|
||||
_ = file.Sync()
|
||||
|
||||
Reference in New Issue
Block a user