diff --git a/Cargo.toml b/Cargo.toml index 51faec766b648d463e2dc9ae861fe06a75138dbc..987979e0acd054edb28096e6b804949901247a06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tudelft-quadrupel" -version = "3.0.0" +version = "3.0.1" edition = "2021" authors = [ "Anne Stijns <anstijns@gmail.com>", diff --git a/src/time.rs b/src/time.rs index 5a5dc12633f72eacccd6eeae889667dcf46b8b6a..dd0fbd6b2cac417863b5bb0159a7fb06bec6db00 100644 --- a/src/time.rs +++ b/src/time.rs @@ -202,6 +202,7 @@ pub fn wait_for_next_tick() { /// Set this timer to interrupt at the given frequency. /// The next interrupt will be after 1/hz seconds. /// +/// Call this before using any other time-related functions. #[allow(clippy::missing_panics_doc)] pub fn set_tick_frequency(hz: u64) { RTC.modify(|rtc| { @@ -218,7 +219,7 @@ pub fn set_tick_frequency(hz: u64) { }); // Give the counter time to clear (Section 19.1.8 of the NRF51 reference manual V3) - delay_us_assembly(100); + delay_us_assembly(500); } /// Delay the program for a time using assembly instructions.