1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-07 03:10:27 +01:00

update clang format

This commit is contained in:
Tomasz Duda 2024-04-24 21:33:37 +02:00
parent 6f22a773c3
commit 264720b90c
7 changed files with 16 additions and 17 deletions

View File

@ -38,4 +38,3 @@ void DeviceFirmwareUpdate::loop() {
} // namespace dfu
} // namespace esphome

View File

@ -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);

View File

@ -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()); }

View File

@ -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();

View File

@ -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];