From a63182770b7f723eb8b95572dedf169d02424ab5 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 14 Oct 2020 13:46:55 +0800 Subject: [PATCH] fix rec --- template/hal_rec_wrapper.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/template/hal_rec_wrapper.c b/template/hal_rec_wrapper.c index c35c935..44a1448 100644 --- a/template/hal_rec_wrapper.c +++ b/template/hal_rec_wrapper.c @@ -13,7 +13,9 @@ /* %%%-SFUNWIZ_wrapper_includes_Changes_BEGIN --- EDIT HERE TO _END */ - +#ifdef HAL_IMPL +#include "param_pre.h" +#endif /* %%%-SFUNWIZ_wrapper_includes_Changes_END --- EDIT HERE TO _BEGIN */ #define u_width 1 @@ -42,7 +44,7 @@ static void pack(uint8_T *pkg, uint16_T *len, const int_T y_width, uint8_T *ts, sum += src[i]; } pkg[j] = sum; - len[0] = length+5; + len[0] = length+4; } /* %%%-SFUNWIZ_wrapper_externs_Changes_END --- EDIT HERE TO _BEGIN */