style: brought to a common standard
This commit is contained in:
1 parent
f2ffa5bebd
commit
e48c4319fa
2 files changed
+15
-5
No files matched your search
+3
-1
@@ -186,6 +186,8 @@ static void _zh_pcf8574_init(void)
|
||||
};
|
||||
i2c_new_master_bus(&i2c_bus_config, &_i2c_bus_handle);
|
||||
zh_pcf8574_init_config_t config = ZH_PCF8574_INIT_CONFIG_DEFAULT();
|
||||
config.task_priority = EXPANDER_TASK_PRIORITY;
|
||||
config.stack_size = EXPANDER_TASK_STACK_SIZE;
|
||||
config.i2c_handle = _i2c_bus_handle;
|
||||
config.i2c_address = LCD_I2C_ADDRESS;
|
||||
zh_pcf8574_init(&config, &_lcd_handle);
|
||||
@@ -233,7 +235,7 @@ static void _zh_encoder_event_handler(void *arg, esp_event_base_t event_base, in
|
||||
{
|
||||
case ZH_BUTTON_EVENT:
|
||||
zh_encoder_button_event_on_isr_t *button_event = event_data;
|
||||
if (button_event->button_status == BUTTON_PRESSED)
|
||||
if (button_event->button_status == ENCODER_BUTTON_PRESSED)
|
||||
{
|
||||
esp_timer_start_once(_inclinometer_reset_timer_handle, 2000000);
|
||||
_is_reset_mode = true;
|
||||
|
||||
Reference in new issue
Block a user