Fix serial flag usage
This commit is contained in:
parent
cce29eb3ba
commit
3494ee5bd8
1 changed files with 8 additions and 8 deletions
16
src/main.rs
16
src/main.rs
|
@ -57,14 +57,6 @@ fn main() -> ! {
|
|||
let peripheral_clock = clocks.peripheral_clock.freq();
|
||||
|
||||
let mut hid: Box<dyn MouseInfoSender> = if SERIAL {
|
||||
Box::new(MouseHID::new(
|
||||
pac.USBCTRL_REGS,
|
||||
pac.USBCTRL_DPRAM,
|
||||
&mut pac.RESETS,
|
||||
core,
|
||||
clocks,
|
||||
))
|
||||
} else {
|
||||
Box::new(CustomHID::new(
|
||||
pac.USBCTRL_REGS,
|
||||
pac.USBCTRL_DPRAM,
|
||||
|
@ -72,6 +64,14 @@ fn main() -> ! {
|
|||
clocks,
|
||||
10,
|
||||
))
|
||||
} else {
|
||||
Box::new(MouseHID::new(
|
||||
pac.USBCTRL_REGS,
|
||||
pac.USBCTRL_DPRAM,
|
||||
&mut pac.RESETS,
|
||||
core,
|
||||
clocks,
|
||||
))
|
||||
};
|
||||
|
||||
// The single-cycle I/O block controls our GPIO pins
|
||||
|
|
Loading…
Reference in a new issue