Skip to content

Commit

Permalink
Merge pull request #78 from ijulles/julles-patch-1
Browse files Browse the repository at this point in the history
fix mdflibrary c example channel error
  • Loading branch information
ihedvall committed Apr 17, 2024
2 parents ccdca43 + fdbdb6d commit 9bd5309
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mdflibrary_example/src/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ void c_example() {

{
pChannel[2] = MdfChannelGroupCreateChannel(cg);
MdfChannelSetName(pChannel[1], "String");
MdfChannelSetDescription(pChannel[1], "string");
MdfChannelSetType(pChannel[1], ChannelType::FixedLength);
MdfChannelSetDataType(pChannel[1], ChannelDataType::StringAscii);
MdfChannelSetDataBytes(pChannel[1], 4);
MdfChannelSetName(pChannel[2], "String");
MdfChannelSetDescription(pChannel[2], "string");
MdfChannelSetType(pChannel[2], ChannelType::FixedLength);
MdfChannelSetDataType(pChannel[2], ChannelDataType::StringAscii);
MdfChannelSetDataBytes(pChannel[2], 4);
}

MdfWriterInitMeasurement(Writer);
Expand Down

0 comments on commit 9bd5309

Please sign in to comment.