| 322 | } |
| 323 | |
| 324 | unsigned 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 | |
| 331 | int CrossPointSettings::getRefreshFrequency() const { |
| 332 | switch (refreshFrequency) { |