From aba436a01792411c5187bbb601c7f80dbd010bc3 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 30 Oct 2017 12:05:03 -0400 Subject: ... --- rom | Bin 11408 -> 11408 bytes src/main.rs | 78 +++++++++++++++++++++++++++++++++++------------------------- 2 files changed, 46 insertions(+), 32 deletions(-) diff --git a/rom b/rom index 5c3e8f0..84409b4 100755 Binary files a/rom and b/rom differ diff --git a/src/main.rs b/src/main.rs index bcd3b49..d162e2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,6 +31,7 @@ fn inc_rotate(n: &mut u8, reset: u8, limit: u8) { } } +#[inline] fn countdown(n: u32) -> u32 { if n > 0 { n - 1 } else { n } } @@ -132,7 +133,7 @@ enum TimePanelState { struct TimePanel<'a> { gs: &'a GlobalState<'a>, - state: Cell, + state: Cell, time: RefCell