Updated Hörmann_door to completely use namespaces. Makes code a bit cleaner
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user