Skip to content

Commit fd746e7

Browse files
Sleep in power idle.
Reduces keyboard polling to about 60 Hz.
1 parent 9d93f3a commit fd746e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@ extern "C" fn block_dev_eject(dev_id: u8) -> common::Result<()> {
15541554
/// Sleep the CPU until the next interrupt.
15551555
extern "C" fn power_idle() {
15561556
// cortex_m::asm::wfe();
1557-
// cortex_m::asm::delay(20_000_000);
1557+
cortex_m::asm::delay(1_000_000);
15581558
}
15591559

15601560
/// TODO: Get the monotonic run-time of the system from SysTick.

0 commit comments

Comments
 (0)