Skip to content

Commit

Permalink
Updated REAMDE.md example with newest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianSchmid committed Jul 12, 2019
1 parent 214d35c commit a40c543
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ access the payload or specific fields in the header. Note that it is also possib
DLT headers with the DltHeader::read function. This can make sense, if most fields of the header are used anyways.

```rust
use self::dlt_parse::{DltHeader, DltExtendedHeader, SliceIterator};
use self::dlt_parse::{DltHeader, DltLogLevel, DltExtendedHeader, SliceIterator};

let header = {
let mut header = DltHeader {
Expand All @@ -54,7 +54,8 @@ let header = {
ecu_id: None,
session_id: None,
timestamp: None,
extended_header: Some(DltExtendedHeader::new_non_verbose(
extended_header: Some(DltExtendedHeader::new_non_verbose_log(
DltLogLevel::Debug,
123,//application id
1,//context id
))
Expand Down

0 comments on commit a40c543

Please sign in to comment.