From 90839d24a17479e799faeb502c129c54296ebe03 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 1 Feb 2026 03:20:14 +0000 Subject: [PATCH] use baseAddress --- internal/xair/bus.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/xair/bus.go b/internal/xair/bus.go index f166412..9ca83d2 100644 --- a/internal/xair/bus.go +++ b/internal/xair/bus.go @@ -16,8 +16,7 @@ func NewBus(c Client) *Bus { // Mute requests the current mute status for a bus func (b *Bus) Mute(bus int) (bool, error) { - formatter := b.client.addressMap["bus"] - address := fmt.Sprintf(formatter, bus) + "/mix/on" + address := fmt.Sprintf(b.baseAddress, bus) + "/mix/on" err := b.client.SendMessage(address) if err != nil { return false, err