Skip to content

Commit 935758f

Browse files
authored
Merge pull request #24 from alteman/patch-1
Fix typo in ES8388_ADCCONTROL2 value for differential input
2 parents 0e1fc6c + 4f1f18e commit 935758f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Driver/es8388/es8388.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ error_t es8388_init(codec_config_t *cfg, i2c_bus_handle_t handle) {
347347
} else if (ADC_INPUT_LINE2 == cfg->input_device) {
348348
tmp = ESP8388_INPUT_LINPUT2_RINPUT2;
349349
} else {
350-
tmp = ADC_INPUT_DIFFERENCE;
350+
tmp = ESP8388_INPUT_DIFFERENCE;
351351
}
352352
res |= es_write_reg(ES8388_ADDR, ES8388_ADCCONTROL2,
353353
tmp); // 0x00 LINSEL & RINSEL, LIN1/RIN1 as ADC Input;

0 commit comments

Comments
 (0)