fix version string retrieval

This commit is contained in:
bunnie 2025-12-19 03:23:24 +08:00
parent 0c690d8be4
commit 2f2a1bcd23

View file

@ -249,15 +249,7 @@ fn main() -> ! {
let mut buf = unsafe {
xous_ipc::Buffer::from_memory_message_mut(msg.body.memory_message_mut().unwrap())
};
#[cfg(feature = "timestamp")]
buf.replace(version::get_version()).unwrap();
#[cfg(not(feature = "timestamp"))]
{
let v = crate::api::VersionString {
version: String::from("--no-timestamp requested for build"),
};
buf.replace(v).unwrap();
}
}
api::Opcode::LockMutex => {