Skip to content

Commit d040884

Browse files
committed
define ESP32PinsSD as static
1 parent bce7eec commit d040884

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Driver/es8388/es8388.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ error_t es8388_set_voice_volume(int volume) {
416416
// DAC LDACVOL RDACVOL default 0 = 0DB; Default value 192 = – -96 dB
417417
res = es_write_reg(ES8388_ADDR, ES8388_DACCONTROL4, 0);
418418
res |= es_write_reg(ES8388_ADDR, ES8388_DACCONTROL5, 0);
419-
// LOUT1 RLOUT1 volume: dataheet says only 6 bits
419+
// LOUT1 LOUT1 volume: dataheet says only 6 bits
420420
res |= es_write_reg(ES8388_ADDR, ES8388_DACCONTROL24, volume);
421421
res |= es_write_reg(ES8388_ADDR, ES8388_DACCONTROL25, volume);
422422
// LOUT2 ROUT2 volume: datasheet says only 6 bits

src/DriverPins.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct PinsSPI {
142142
/**
143143
* @brief Default SPI pins for ESP32 Lyrat, AudioDriver etc
144144
*/
145-
PinsSPI ESP32PinsSD{PinFunction::SD, 14, 2, 15, 13, SPI};
145+
static PinsSPI ESP32PinsSD{PinFunction::SD, 14, 2, 15, 13, SPI};
146146

147147
/**
148148
* @brief I2C pins

0 commit comments

Comments
 (0)