MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / isEnabled

Method isEnabled

Tactility/Source/service/espnow/EspNowService.cpp:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157// endregion Callbacks
158
159bool EspNowService::isEnabled() const {
160 auto lock = mutex.asScopedLock();
161 lock.lock();
162 return enabled;
163}
164
165bool EspNowService::addPeer(const esp_now_peer_info_t& peer) {
166 if (esp_now_add_peer(&peer) != ESP_OK) {

Callers 4

isEnabledFunction · 0.45
onEnableSwitchChangedMethod · 0.45
updateViewStateMethod · 0.45
onShowMethod · 0.45

Calls 2

asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected