From 5494ce753922b4b996a6d7a664c4dbda1c880652 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Mon, 15 Feb 2021 23:28:13 +0000 Subject: [PATCH] rom function git_revision() does return an u32, not a &str --- rp2040-hal/src/rom_data.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rp2040-hal/src/rom_data.rs b/rp2040-hal/src/rom_data.rs index 64e0c3f..cbf99ef 100644 --- a/rp2040-hal/src/rom_data.rs +++ b/rp2040-hal/src/rom_data.rs @@ -144,9 +144,9 @@ pub fn copyright_string() -> &'static str { } /// The 8 most significant hex digits of the Bootrom git revision. -pub fn git_revision() -> &'static str { - let s: *const u8 = rom_table_lookup(DATA_TABLE, *b"GR"); - unsafe { convert_str(s) } +pub fn git_revision() -> u32 { + let s: *const u32 = rom_table_lookup(DATA_TABLE, *b"GR"); + unsafe { *s } } /// The start address of the floating point library code and data. This and fplib_end along with the individual