From 9d83537e1ccbb35cd688fcc56667caf8c7979164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalle=20L=C3=B6fgren?= <kalle.lofgren94@gmail.com> Date: Fri, 7 May 2021 14:44:10 +0000 Subject: [PATCH] Update Project_Mouse.rs --- code/Project_Mouse.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/Project_Mouse.rs b/code/Project_Mouse.rs index 8571abc..5526bb7 100644 --- a/code/Project_Mouse.rs +++ b/code/Project_Mouse.rs @@ -290,8 +290,8 @@ const APP: () = { //LEDs let mut state: i8 = 0; - if Led_Counter == 10{ - Led_Counter = 0; + if *Led_Counter == 10{ + *Led_Counter = 0 as u8; if l_click.is_high().unwrap(){ if led_r.is_high().unwrap(){ state = 1; @@ -319,7 +319,7 @@ const APP: () = { toggle_led(state, led_r, led_g, led_b); } else{ - Led_Counter = Led_Counter + 1; + *Led_Counter = *Led_Counter + 1 as u8; } let (x, y) = cx.resources.pmw3389.read_status().unwrap(); -- GitLab