From d0408842c6d943135ae638b1225bf0875f372c88 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Thu, 24 Oct 2024 17:09:20 +0200 Subject: [PATCH] define ESP32PinsSD as static --- src/Driver/es8388/es8388.c | 2 +- src/DriverPins.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Driver/es8388/es8388.c b/src/Driver/es8388/es8388.c index 4db9fe0..2306599 100755 --- a/src/Driver/es8388/es8388.c +++ b/src/Driver/es8388/es8388.c @@ -416,7 +416,7 @@ error_t es8388_set_voice_volume(int volume) { // DAC LDACVOL RDACVOL default 0 = 0DB; Default value 192 = – -96 dB res = es_write_reg(ES8388_ADDR, ES8388_DACCONTROL4, 0); res |= es_write_reg(ES8388_ADDR, ES8388_DACCONTROL5, 0); - // LOUT1 RLOUT1 volume: dataheet says only 6 bits + // LOUT1 LOUT1 volume: dataheet says only 6 bits res |= es_write_reg(ES8388_ADDR, ES8388_DACCONTROL24, volume); res |= es_write_reg(ES8388_ADDR, ES8388_DACCONTROL25, volume); // LOUT2 ROUT2 volume: datasheet says only 6 bits diff --git a/src/DriverPins.h b/src/DriverPins.h index 73e6e63..a6af50d 100644 --- a/src/DriverPins.h +++ b/src/DriverPins.h @@ -142,7 +142,7 @@ struct PinsSPI { /** * @brief Default SPI pins for ESP32 Lyrat, AudioDriver etc */ -PinsSPI ESP32PinsSD{PinFunction::SD, 14, 2, 15, 13, SPI}; +static PinsSPI ESP32PinsSD{PinFunction::SD, 14, 2, 15, 13, SPI}; /** * @brief I2C pins