From: Michal Horn Date: Mon, 6 Oct 2014 11:32:58 +0000 (+0200) Subject: Fixed syntax error when extenal mode enabled for model with CAN blocks X-Git-Url: https://rtime.felk.cvut.cz/gitweb/socketcan-simulink.git/commitdiff_plain/6a9d875d01d6a0de06a5d8bf2570eec1b23534bc?ds=sidebyside Fixed syntax error when extenal mode enabled for model with CAN blocks Compiler returned with undefined data types CAN_MESSAGE_EXTENDED and CAN_MESSAGE_STANDARD errors when the external mode was enabled for a model witch used CAN blocks. When CAN Pack or CAN Unpack block has been added to the model, the error disappeared. Also a can_ext_mode_demo has been created for detection of similar error in the future. Fixes #1015 --- diff --git a/blocks/tlc_c/common.tlc b/blocks/tlc_c/common.tlc index 571cb85..b9f759d 100644 --- a/blocks/tlc_c/common.tlc +++ b/blocks/tlc_c/common.tlc @@ -49,7 +49,7 @@ %assign _DONE_COMMON_BLOCK_TYPE_SETUP_ = 1 %if !SLibCodeGenForSim() - %% %")> + % %endif %endif