Skip to content

Commit

Permalink
fix modm:platform:itm
Browse files Browse the repository at this point in the history
Itm not work if buffer.tx option is not set.
Itm::write_itm assumes data is stored in highest byte.
  • Loading branch information
xgzeng committed May 31, 2022
1 parent 55d5911 commit 90774be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modm/platform/uart/cortex/itm.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 90774be

Please sign in to comment.