We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9791f commit 568fa81Copy full SHA for 568fa81
ledmatrix/src/main.rs
@@ -219,14 +219,14 @@ fn main() -> ! {
219
loop {
220
// TODO: Current hardware revision does not have the sleep pin wired up :(
221
// Go to sleep if the host is sleeping
222
- let _host_sleeping = sleep.is_low().unwrap();
223
- //handle_sleep(
224
- // host_sleeping,
225
- // &mut state,
226
- // &mut matrix,
227
- // &mut delay,
228
- // &mut led_enable,
229
- //);
+ let host_sleeping = sleep.is_low().unwrap();
+ handle_sleep(
+ host_sleeping,
+ &mut state,
+ &mut matrix,
+ &mut delay,
+ &mut led_enable,
+ );
230
231
// Handle period display updates. Don't do it too often
232
if timer.get_counter().ticks() > prev_timer + state.animation_period {
0 commit comments