File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,22 +19,22 @@ version = "0.3.0"
19
19
readme = " README.md"
20
20
21
21
[dependencies ]
22
- cortex-m = " 0.6.0 "
23
- cortex-m-rt = " 0.6.8 "
22
+ cortex-m = " 0.6"
23
+ cortex-m-rt = " 0.6"
24
24
25
25
[dependencies .embedded-hal ]
26
26
features = [" unproven" ]
27
- version = " 0.2.2 "
27
+ version = " 0.2"
28
28
29
29
[dependencies .stm32f4xx-hal ]
30
30
default-features = false
31
31
features = [" rt" , " stm32f407" ]
32
- version = " 0.5.0 "
32
+ version = " 0.6 "
33
33
34
34
[dev-dependencies ]
35
- ssd1306 = " 0.2.4 "
36
- nb = " 0.1.2 "
37
- panic-halt = " 0.2.0 "
35
+ ssd1306 = " 0.2"
36
+ nb = " 0.1"
37
+ panic-halt = " 0.2"
38
38
39
39
[profile .dev ]
40
40
debug = true
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ impl Led {
123
123
124
124
/// Toggles the LED
125
125
pub fn toggle ( & mut self ) {
126
- if self . pin . is_low ( ) {
126
+ if let Ok ( true ) = self . pin . is_low ( ) {
127
127
self . pin . set_high ( ) ;
128
128
} else {
129
129
self . pin . set_low ( ) ;
You can’t perform that action at this time.
0 commit comments