Skip to content

Commit

Permalink
define ESP32PinsSD as static
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 24, 2024
1 parent bce7eec commit d040884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Driver/es8388/es8388.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/DriverPins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d040884

Please sign in to comment.