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:
parent
6f22a773c3
commit
264720b90c
@ -38,4 +38,3 @@ void DeviceFirmwareUpdate::loop() {
|
||||
|
||||
} // namespace dfu
|
||||
} // namespace esphome
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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()); }
|
||||
|
@ -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();
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user