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 6905718 commit d1b3af7Copy full SHA for d1b3af7
1 file changed
src/main.rs
@@ -620,7 +620,7 @@ impl Hardware {
620
/// These are connected to the bit 4 of GPIOA on the MCP23S17.
621
fn set_hdd_led(&mut self, enabled: bool) {
622
// LEDs are active-low.
623
- self.debug_leds = (self.debug_leds & 0x17) | u8::from(enabled);
+ self.debug_leds = (self.debug_leds & 0x1e) | if enabled { 0 } else { 1 };
624
self.io_chip_write(0x12, self.debug_leds << 3 | self.last_cs);
625
}
626
0 commit comments