SensESP 3.4.1-alpha
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
status_page_item.cpp
Go to the documentation of this file.
1#include "status_page_item.h"
2
3namespace sensesp {
4
5std::map<String, StatusPageItemBase*> StatusPageItemBase::status_page_items_;
6
8 // Only erase if this item is the one registered under its name. Duplicate
9 // names keep the first registration, so a later duplicate must not remove
10 // the original's entry.
11 auto it = status_page_items_.find(name_);
12 if (it != status_page_items_.end() && it->second == this) {
13 status_page_items_.erase(it);
14 }
15}
16
18
19} // namespace sensesp
static std::map< String, StatusPageItemBase * > status_page_items_