Skip to content

Commit c0ed04d

Browse files
committed
Fix construction of non-verbose args
1 parent c5c008c commit c0ed04d

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

application/apps/indexer/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ thiserror = "2.0"
2626
lazy_static = "1.5"
2727
tokio = { version = "1", features = ["full"] }
2828
tokio-stream = "0.1"
29-
dlt-core = "0.20"
29+
#dlt-core = "0.20.2"
30+
dlt-core = { git = "https://github.com/kruss/dlt-core.git", branch = "fix_fibex_non_verbose_args" }
3031
crossbeam-channel = "0.5"
3132
futures = "0.3"
3233
tokio-util = "0.7"

application/apps/indexer/parsers/src/dlt/fmt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl FormattableMessage<'_> {
492492
Ok(())
493493
}
494494

495-
fn info_from_metadata<'b>(&'b self, id: u32, data: &[u8]) -> Option<NonVerboseInfo<'b>> {
495+
fn info_from_metadata<'b>(&'b self, id: u32, mut data: &[u8]) -> Option<NonVerboseInfo<'b>> {
496496
let fibex = self.fibex_dlt_metadata?;
497497
let md = extract_metadata(fibex, id, self.message.extended_header.as_ref())?;
498498
let msg_type: Option<MessageType> = message_type(&self.message, md.message_info.as_deref());
@@ -525,10 +525,11 @@ impl FormattableMessage<'_> {
525525
};
526526
arguments.push(arg);
527527
} else {
528-
if let Ok(mut new_args) =
528+
if let Ok((rest, mut new_args)) =
529529
construct_arguments(self.message.header.endianness, &pdu.signal_types, data)
530530
{
531531
arguments.append(&mut new_args);
532+
data = rest;
532533
}
533534
trace!("Constructed {} arguments", arguments.len());
534535
};

application/apps/rustcore/rs-bindings/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/examples/rust/dlt_parser/src/dlt/fmt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl FormattableMessage<'_> {
259259
}
260260
}
261261

262-
fn info_from_metadata<'b>(&'b self, id: u32, data: &[u8]) -> Option<NonVerboseInfo<'b>> {
262+
fn info_from_metadata<'b>(&'b self, id: u32, mut data: &[u8]) -> Option<NonVerboseInfo<'b>> {
263263
let fibex = self.fibex_dlt_metadata?;
264264
let md = extract_metadata(fibex, id, self.message.extended_header.as_ref())?;
265265
let msg_type: Option<MessageType> = message_type(&self.message, md.message_info.as_deref());
@@ -292,10 +292,11 @@ impl FormattableMessage<'_> {
292292
};
293293
arguments.push(arg);
294294
} else {
295-
if let Ok(mut new_args) =
295+
if let Ok((rest, mut new_args)) =
296296
construct_arguments(self.message.header.endianness, &pdu.signal_types, data)
297297
{
298298
arguments.append(&mut new_args);
299+
data = rest;
299300
}
300301
trace!("Constructed {} arguments", arguments.len());
301302
};

0 commit comments

Comments
 (0)