More refactoring

last compile dependency on DAC
This commit is contained in:
philippe44
2020-02-09 13:29:25 -08:00
parent 5bee512a85
commit 90d52dabaf
12 changed files with 61 additions and 46 deletions

View File

@@ -32,7 +32,7 @@ static const char *TAG = "cmd_i2ctools";
static gpio_num_t i2c_gpio_sda = 19;
static gpio_num_t i2c_gpio_scl = 18;
static uint32_t i2c_frequency = 100000;
#ifdef I2C_LOCKED
#ifdef CONFIG_I2C_LOCKED
static i2c_port_t i2c_port = I2C_NUM_1;
#else
static i2c_port_t i2c_port = I2C_NUM_0;