diff options
author | TomiZet <zvarik.t@gmail.com> | 2021-08-30 03:49:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 10:49:09 +0900 |
commit | fd70ae43f25c1737419a3a9912855a3116497815 (patch) | |
tree | 01e9553c3b2d43b96cc3f5b00be298e54719461e /src/lib/dlt_user.c | |
parent | 5379928defc81fc3826d84a634893c27394da59f (diff) | |
download | DLT-daemon-fd70ae43f25c1737419a3a9912855a3116497815.tar.gz |
lib: Set TYLE to 1 for BOOL type (#320)
According to AUTOSAR standard the TYLE for the BOOL type shall be set to 1. So I propose to initialize type_info variable for the BOOL type the same way as for uint8 type.
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r-- | src/lib/dlt_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index 518f2e4..e3565af 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -2292,13 +2292,13 @@ DltReturnValue dlt_user_log_write_int64_attr(DltContextData *log, int64_t data, DltReturnValue dlt_user_log_write_bool(DltContextData *log, uint8_t data) { - uint32_t type_info = DLT_TYPE_INFO_BOOL; + uint32_t type_info = DLT_TYPE_INFO_BOOL | DLT_TYLE_8BIT; return dlt_user_log_write_generic_attr(log, &data, sizeof(uint8_t), type_info, NULL); } DltReturnValue dlt_user_log_write_bool_attr(DltContextData *log, uint8_t data, const char *name) { - uint32_t type_info = DLT_TYPE_INFO_BOOL; + uint32_t type_info = DLT_TYPE_INFO_BOOL | DLT_TYLE_8BIT; const VarInfo var_info = { name, NULL, false }; return dlt_user_log_write_generic_attr(log, &data, sizeof(uint8_t), type_info, &var_info); } |