mirror of
https://github.com/esphome/esphome.git
synced 2025-09-28 16:12:24 +01:00
preen
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#include "event_emitter.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace event_emitter {
|
||||
|
||||
static const char *const TAG = "event_emitter";
|
||||
|
||||
void raise_event_emitter_full_error() {
|
||||
ESP_LOGE(TAG, "EventEmitter has reached the maximum number of listeners for event");
|
||||
ESP_LOGW(TAG, "Removing listener to make space for new listener");
|
||||
}
|
||||
|
||||
} // namespace event_emitter
|
||||
} // namespace esphome
|
@@ -10,7 +10,6 @@ namespace event_emitter {
|
||||
|
||||
using EventEmitterListenerID = uint32_t;
|
||||
static constexpr EventEmitterListenerID INVALID_LISTENER_ID = 0;
|
||||
void raise_event_emitter_full_error();
|
||||
|
||||
// EventEmitter class that can emit events with a specific name (it is highly recommended to use an enum class for this)
|
||||
// and a list of arguments. Supports multiple listeners for each event.
|
||||
|
Reference in New Issue
Block a user