From 5ff5ff54ecc20259ce1d47df7df472b2fd73acad Mon Sep 17 00:00:00 2001
From: Per <Per Lindgren>
Date: Fri, 20 Oct 2017 01:35:56 +0200
Subject: [PATCH] println!

---
 src/lib.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs
index b8ab7b6..eaf53f2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -143,11 +143,11 @@ pub mod apb2 {
 /// println over semihosting
 #[macro_export]
 macro_rules! println {
-    ($e:expr) => {
+    ($($e:tt)*) => {
         {  
             extern crate cortex_m_semihosting;
             use core::fmt::Write;            
-            writeln!(cortex_m_semihosting::hio::hstdout().unwrap(), $e).unwrap();
+            writeln!(cortex_m_semihosting::hio::hstdout().unwrap(), $($e)*).unwrap();
         }
     }
 }
-- 
GitLab