diff --git a/rotator/yaesu/yaesu.go b/rotator/yaesu/yaesu.go index 4c7f286..5aba7ce 100644 --- a/rotator/yaesu/yaesu.go +++ b/rotator/yaesu/yaesu.go @@ -358,7 +358,7 @@ func (r *Yaesu) setValueAndCallEvent(ev rotator.Event, value int) { // Name returns the name of the rotator func (r *Yaesu) Name() string { r.RLock() - defer r.Unlock() + defer r.RUnlock() return r.name }