chore: release v0.22.9
This commit is contained in:
@@ -14790,8 +14790,14 @@ func (a *App) AmpOperate(id string, on bool) error {
|
||||
}
|
||||
|
||||
// AmpPower turns the given amp on/off (SPE and ACOM; the PGXL has no power
|
||||
// command on its direct link).
|
||||
func (a *App) AmpPower(id string, on bool) error {
|
||||
// command on its direct link). Logged here because the UI buttons swallow the
|
||||
// returned error — a failed power-on otherwise looks like a dead button.
|
||||
func (a *App) AmpPower(id string, on bool) (err error) {
|
||||
defer func() {
|
||||
if err != nil {
|
||||
applog.Printf("amp %s: power %v failed: %v", id, on, err)
|
||||
}
|
||||
}()
|
||||
inst := a.ampInstByID(id)
|
||||
if inst == nil {
|
||||
return fmt.Errorf("amplifier not running — check Settings → Amplifier")
|
||||
|
||||
Reference in New Issue
Block a user