From 90774be3cfcf72c6a5dc67f68765d016afb49bc0 Mon Sep 17 00:00:00 2001 From: xgzeng Date: Tue, 31 May 2022 15:56:54 +0800 Subject: [PATCH] fix modm:platform:itm Itm not work if buffer.tx option is not set. Itm::write_itm assumes data is stored in highest byte. --- src/modm/platform/uart/cortex/itm.cpp.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modm/platform/uart/cortex/itm.cpp.in b/src/modm/platform/uart/cortex/itm.cpp.in index 16b6c3fefe..a089112a9f 100644 --- a/src/modm/platform/uart/cortex/itm.cpp.in +++ b/src/modm/platform/uart/cortex/itm.cpp.in @@ -97,7 +97,7 @@ Itm::write(uint8_t data) update(); return txBuffer.push(data); %% else - return write_itm(data); + return write_itm(data << 24); %% endif }