Updated Hörmann_door to completely use namespaces. Makes code a bit cleaner

This commit is contained in:
2025-10-07 00:50:49 +02:00
parent 3ef68a9539
commit 9d3930af59
6 changed files with 48 additions and 37 deletions

View File

@@ -2,14 +2,17 @@
#include <algorithm>
namespace esphome {
namespace hoermann_door {
class HoermannMainComponent;
}
}
#include "hciemulator.h"
#include "esphome/components/uart/uart.h"
namespace esphome {
namespace hoermann_door {
static const char *const TAG = "Hoermann";
static const char *const COMP_TAG = "Hoermann";
void dispatcherFn(void *arg);
@@ -72,8 +75,8 @@ class HoermannMainComponent: public Component{
}
void dump_config() override {
ESP_LOGCONFIG(TAG, "hoermann_door_component:");
ESP_LOGCONFIG(TAG, " UART: %d", this->_uart->get_baud_rate());
ESP_LOGCONFIG(COMP_TAG, "hoermann_door_component:");
ESP_LOGCONFIG(COMP_TAG, " UART: %d", this->_uart->get_baud_rate());
//LOG_PIN(TAG, this->_tx_on);
}
};