add speaker fault + some cleanup

This commit is contained in:
philippe44
2020-01-12 15:57:05 -08:00
parent 52fad515b8
commit b5dc9ec47a
5 changed files with 50 additions and 5 deletions

View File

@@ -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);
}