MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / getSleepTimeoutMs

Method getSleepTimeoutMs

src/CrossPointSettings.cpp:324–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324unsigned long CrossPointSettings::getSleepTimeoutMs() const {
325 if (sleepTimeoutMinutes >= SLEEP_TIMEOUT_NEVER_MINUTES) return 0UL;
326 const uint8_t minutes =
327 std::clamp(sleepTimeoutMinutes, MIN_SLEEP_TIMEOUT_MINUTES, static_cast<uint8_t>(SLEEP_TIMEOUT_NEVER_MINUTES - 1));
328 return static_cast<unsigned long>(minutes) * 60UL * 1000UL;
329}
330
331int CrossPointSettings::getRefreshFrequency() const {
332 switch (refreshFrequency) {

Callers 1

loopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected