MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / dyn_sleep_mode

Function dyn_sleep_mode

ledmatrix/src/main.rs:571–577  ·  view source on GitHub ↗
(state: &LedmatrixState)

Source from the content-addressed store, hash-verified

569}
570
571fn dyn_sleep_mode(state: &LedmatrixState) -> SleepMode {
572 if state.debug_mode {
573 SleepMode::Debug
574 } else {
575 SLEEP_MODE
576 }
577}
578
579fn debug_mode(state: &LedmatrixState) -> bool {
580 dyn_sleep_mode(state) == SleepMode::Debug

Callers 2

debug_modeFunction · 0.85
handle_sleepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected