mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-27 12:50:49 +03:00
add speaker fault + some cleanup
This commit is contained in:
@@ -208,7 +208,7 @@ static u8_t tas57_addr;
|
||||
static void jack_handler(bool inserted) {
|
||||
// jack detection bounces a bit but that seems fine
|
||||
if (jack_mutes_amp) {
|
||||
LOG_INFO("switching amplifier %s", inserted ? "ON" : "OFF");
|
||||
LOG_INFO("switching amplifier %s", inserted ? "OFF" : "ON");
|
||||
if (inserted) dac_cmd(DAC_ANALOGUE_OFF);
|
||||
else dac_cmd(DAC_ANALOGUE_ON);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user