diff --git a/esphome/components/dfu/dfu.cpp b/esphome/components/dfu/dfu.cpp index 0d10e045b1..b8cde70490 100644 --- a/esphome/components/dfu/dfu.cpp +++ b/esphome/components/dfu/dfu.cpp @@ -38,4 +38,3 @@ void DeviceFirmwareUpdate::loop() { } // namespace dfu } // namespace esphome - diff --git a/esphome/components/light/esp_hsv_color.h b/esphome/components/light/esp_hsv_color.h index d4826a2351..39f5e55707 100644 --- a/esphome/components/light/esp_hsv_color.h +++ b/esphome/components/light/esp_hsv_color.h @@ -27,8 +27,8 @@ struct ESPHSVColor { inline ESPHSVColor() ESPHOME_ALWAYS_INLINE : h(0), s(0), v(0) { // NOLINT } inline ESPHSVColor(uint8_t hue, uint8_t saturation, uint8_t value) ESPHOME_ALWAYS_INLINE : hue(hue), - saturation(saturation), - value(value) {} + saturation(saturation), + value(value) {} Color to_rgb() const; }; diff --git a/esphome/components/logger/logger.cpp b/esphome/components/logger/logger.cpp index 05ac6d2d87..33efdb33be 100644 --- a/esphome/components/logger/logger.cpp +++ b/esphome/components/logger/logger.cpp @@ -40,11 +40,11 @@ void Logger::write_header_(int level, const char *tag, int line) { const char *color = LOG_LEVEL_COLORS[level]; const char *letter = LOG_LEVEL_LETTERS[level]; #if defined(USE_ESP32) || defined(USE_LIBRETINY) - void * current_task = xTaskGetCurrentTaskHandle(); + void *current_task = xTaskGetCurrentTaskHandle(); #elif defined(USE_ZEPHYR) k_tid_t current_task = k_current_get(); #else - void * current_task = nullptr; + void *current_task = nullptr; #endif if (current_task == main_task_) { this->printf_to_buffer_("%s[%s][%s:%03u]: ", color, letter, tag, line); diff --git a/esphome/components/zephyr/core.cpp b/esphome/components/zephyr/core.cpp index 29b1684276..0e0325580a 100644 --- a/esphome/components/zephyr/core.cpp +++ b/esphome/components/zephyr/core.cpp @@ -7,7 +7,7 @@ namespace esphome { static int wdt_channel_id = -EINVAL; -const device * wdt = nullptr; +const device *wdt = nullptr; void yield() { ::k_yield(); } uint32_t millis() { return k_ticks_to_ms_floor32(k_uptime_ticks()); } diff --git a/esphome/components/zephyr_ble_server/ble_server.cpp b/esphome/components/zephyr_ble_server/ble_server.cpp index df63ea30f7..8007f32c21 100644 --- a/esphome/components/zephyr_ble_server/ble_server.cpp +++ b/esphome/components/zephyr_ble_server/ble_server.cpp @@ -12,11 +12,11 @@ static const char *const TAG = "zephyr_ble_server"; static struct k_work advertise_work; #define DEVICE_NAME CONFIG_BT_DEVICE_NAME -#define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1) +#define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1) static const struct bt_data AD[] = { - BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)), - BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN), + BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)), + BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN), }; static const struct bt_data SD[] = { @@ -26,7 +26,7 @@ static const struct bt_data SD[] = { #endif }; -const struct bt_le_adv_param* const ADV_PARAM = BT_LE_ADV_CONN; +const struct bt_le_adv_param *const ADV_PARAM = BT_LE_ADV_CONN; static void advertise(struct k_work *work) { bt_le_adv_stop(); diff --git a/esphome/core/color.h b/esphome/core/color.h index 1f8bb20911..030fd81dfe 100644 --- a/esphome/core/color.h +++ b/esphome/core/color.h @@ -35,13 +35,13 @@ struct Color { inline Color(uint8_t red, uint8_t green, uint8_t blue) ESPHOME_ALWAYS_INLINE : r(red), g(green), b(blue), w(0) {} inline Color(uint8_t red, uint8_t green, uint8_t blue, uint8_t white) ESPHOME_ALWAYS_INLINE : r(red), - g(green), - b(blue), - w(white) {} + g(green), + b(blue), + w(white) {} inline explicit Color(uint32_t colorcode) ESPHOME_ALWAYS_INLINE : r((colorcode >> 16) & 0xFF), - g((colorcode >> 8) & 0xFF), - b((colorcode >> 0) & 0xFF), - w((colorcode >> 24) & 0xFF) {} + g((colorcode >> 8) & 0xFF), + b((colorcode >> 0) & 0xFF), + w((colorcode >> 24) & 0xFF) {} inline bool is_on() ESPHOME_ALWAYS_INLINE { return this->raw_32 != 0; } diff --git a/esphome/core/helpers.cpp b/esphome/core/helpers.cpp index 6beaf4efd5..c96adf5985 100644 --- a/esphome/core/helpers.cpp +++ b/esphome/core/helpers.cpp @@ -598,7 +598,7 @@ void get_mac_address_raw(uint8_t *mac) { // NOLINT(readability-non-const-parame #else // this should be an error, but that messes with CI checks. #error No mac address method defined #endif -//TODO + // TODO } std::string get_mac_address() { uint8_t mac[6];