| 14 | static const auto LOGGER = Logger("EspNow"); |
| 15 | |
| 16 | void enable(const EspNowConfig& config) { |
| 17 | auto service = findService(); |
| 18 | if (service != nullptr) { |
| 19 | service->enable(config); |
| 20 | } else { |
| 21 | LOGGER.error("Service not found"); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void disable() { |
| 26 | auto service = findService(); |
no test coverage detected