]> rtime.felk.cvut.cz Git - socketcan-simulink.git/commitdiff
Fixed syntax error when extenal mode enabled for model with CAN blocks
authorMichal Horn <hornmich@fel.cvut.cz>
Mon, 6 Oct 2014 11:32:58 +0000 (13:32 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Fri, 10 Oct 2014 08:52:58 +0000 (10:52 +0200)
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

blocks/tlc_c/common.tlc

index 571cb85e8f1a2100c45054d95f28e25212264174..b9f759d6d16f4c545df4382ade521d5de0235156 100644 (file)
@@ -49,7 +49,7 @@
         %assign _DONE_COMMON_BLOCK_TYPE_SETUP_ = 1
          %if !SLibCodeGenForSim()
 
-            %% %<LibAddToCommonIncludes("<rpp/rpp.h>")>
+            %<LibAddToCommonIncludes("can_message.h")>
 
         %endif
    %endif