Skip to content

Commit b9a26cc

Browse files
authored
Merge pull request #27 from jannic-dev-forks/minor-fix
Minor fixes
2 parents 445c77d + 6032821 commit b9a26cc

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

Cargo.toml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,6 @@ pc-keyboard = "0.6"
4141
# Useful queues and other structures
4242
heapless = "0.7"
4343

44-
[features]
45-
default = [
46-
"defmt-default",
47-
]
48-
defmt-default = []
49-
# Enables trace logs
50-
defmt-trace = []
51-
# Enables debug logs
52-
defmt-debug = []
53-
# Enables info logs
54-
defmt-info = []
55-
# Enables warn logs
56-
defmt-warn = []
57-
# Enables error logs
58-
defmt-error = []
59-
6044
[[bin]]
6145
name = "neotron-pico-bios"
6246
test = false

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ impl Hardware {
623623
/// These are connected to the bit 4 of GPIOA on the MCP23S17.
624624
fn set_hdd_led(&mut self, enabled: bool) {
625625
// LEDs are active-low.
626-
self.debug_leds = (self.debug_leds & 0x17) | u8::from(enabled);
626+
self.debug_leds = (self.debug_leds & 0x1e) | if enabled { 0 } else { 1 };
627627
self.io_chip_write(0x12, self.debug_leds << 3 | self.last_cs);
628628
}
629629

0 commit comments

Comments
 (0)