forked from espressif/esp-idf
refactor(esp_lcd): reformat code with astyle_py
This commit is contained in:
@@ -44,7 +44,6 @@ typedef struct {
|
||||
esp_lcd_panel_io_color_trans_done_cb_t on_color_trans_done; /*!< Callback invoked when color data transfer has finished */
|
||||
} esp_lcd_panel_io_callbacks_t;
|
||||
|
||||
|
||||
/**
|
||||
* @brief Transmit LCD command and receive corresponding parameters
|
||||
*
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -161,8 +161,7 @@ static esp_err_t panel_io_i2c_tx_buffer(esp_lcd_panel_io_t *io, int lcd_cmd, con
|
||||
}
|
||||
|
||||
// some displays don't want any additional commands on data transfers
|
||||
if (send_param)
|
||||
{
|
||||
if (send_param) {
|
||||
uint8_t cmds[4] = {BYTESHIFT(lcd_cmd, 3), BYTESHIFT(lcd_cmd, 2), BYTESHIFT(lcd_cmd, 1), BYTESHIFT(lcd_cmd, 0)};
|
||||
size_t cmds_size = i2c_panel_io->lcd_cmd_bits / 8;
|
||||
if (cmds_size > 0 && cmds_size <= sizeof(cmds)) {
|
||||
|
@@ -159,8 +159,7 @@ static esp_err_t panel_io_i2c_tx_buffer(esp_lcd_panel_io_t *io, int lcd_cmd, con
|
||||
}
|
||||
|
||||
// some displays don't want any additional commands on data transfers
|
||||
if (send_param)
|
||||
{
|
||||
if (send_param) {
|
||||
uint8_t cmds[4] = {BYTESHIFT(lcd_cmd, 3), BYTESHIFT(lcd_cmd, 2), BYTESHIFT(lcd_cmd, 1), BYTESHIFT(lcd_cmd, 0)};
|
||||
size_t cmds_size = i2c_panel_io->lcd_cmd_bits / 8;
|
||||
if (cmds_size > 0 && cmds_size <= sizeof(cmds)) {
|
||||
|
@@ -43,7 +43,6 @@ TEST_CASE("i80_and_i2s_driver_co-existence", "[lcd][i2s]")
|
||||
};
|
||||
TEST_ESP_OK(esp_lcd_new_i80_bus(&bus_config, &i80_bus));
|
||||
|
||||
|
||||
i2s_chan_handle_t tx_handle = NULL;
|
||||
i2s_chan_config_t chan_cfg = I2S_CHANNEL_DEFAULT_CONFIG(I2S_NUM_0, I2S_ROLE_MASTER);
|
||||
// I2S driver won't be installed as the same I2S port has been used by LCD
|
||||
|
@@ -66,7 +66,6 @@ components_not_formatted_temporary:
|
||||
- "/components/esp_https_ota/"
|
||||
- "/components/esp_https_server/"
|
||||
- "/components/esp_hw_support/"
|
||||
- "/components/esp_lcd/"
|
||||
- "/components/esp_local_ctrl/"
|
||||
- "/components/esp_mm/"
|
||||
- "/components/esp_netif/"
|
||||
|
Reference in New Issue
Block a user