mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
More linting
This commit is contained in:
parent
c9a098ba0f
commit
d4707e97c8
2 changed files with 2 additions and 6 deletions
|
@ -3,12 +3,11 @@ from esphome.automation import maybe_simple_id
|
|||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import i2c
|
||||
from esphome.const import CONF_ID
|
||||
from esphome.const import CONF_ID, CONF_PRESET
|
||||
from esphome.util import Registry
|
||||
|
||||
CONF_ES8388_ID = "es8388_id"
|
||||
|
||||
CONF_PRESET = "preset"
|
||||
CONF_INIT_INSTRUCTIONS = "init_instructions"
|
||||
CONF_MACROS = "macros"
|
||||
CONF_INSTRUCTIONS = "instructions"
|
||||
|
|
|
@ -9,9 +9,6 @@ namespace es8388 {
|
|||
|
||||
static const char *const TAG = "es8388";
|
||||
|
||||
#define ES8388_CLK_MODE_SLAVE 0
|
||||
#define ES8388_CLK_MODE_MASTER 1
|
||||
|
||||
void ES8388Component::setup() {
|
||||
switch (this->preset_) {
|
||||
case ES8388Preset::RASPIAUDIO_MUSE_LUXE:
|
||||
|
@ -132,7 +129,7 @@ void ES8388Component::setup_raspiaudio_radio() {
|
|||
error = error || not this->write_byte(1, 0x50);
|
||||
// powerup
|
||||
error = error || not this->write_byte(2, 0x00);
|
||||
// slave mode
|
||||
// follower mode
|
||||
error = error || not this->write_byte(8, 0x00);
|
||||
// DAC powerdown
|
||||
error = error || not this->write_byte(4, 0xC0);
|
||||
|
|
Loading…
Reference in a new issue