Skip to content

Commit

Permalink
Fixed code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Menne authored and Benedikt Menne committed Nov 20, 2023
1 parent ca4afbf commit bb30d49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ls-bus-guide/4____network_abstraction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fmi3Status fmi3SetBinary(fmi3Instance instance,
...
for (size_t i = 0; i < nValueReferences; i++) {
if (valueReferences[i] == RX_DATA_REFERENCE) {
FMI3_LS_BUS_BUFFER_WRITE(&RXBufferInfoCan, value[i], valueSize[i]); // <1>
FMI3_LS_BUS_BUFFER_WRITE(&RxBufferInfoCan, value[i], valueSize[i]); // <1>
}
}
...
Expand Down Expand Up @@ -266,7 +266,7 @@ fmi3Status fmi3DoStep(...) {
}
/* Reset read/write positions */
FMI3_LS_BUS_BUFFER_INFO_RESET(&RXBufferInfoCan);
FMI3_LS_BUS_BUFFER_INFO_RESET(&RxBufferInfoCan);
...
}
}
Expand All @@ -292,7 +292,7 @@ fmi3Status fmi3SetClock(fmi3Instance instance,
for (size_t i = 0; i < nValueReferences; i++) {
if (valueReferences[i] == RX_CLOCK_REFERENCE && values[i] == fmi3ClockActive) {
/* Processing of received bus operations */
while (FMI3_LS_BUS_READ_NEXT_OPERATION(&RXBufferInfoCan, hdr)) // <1>
while (FMI3_LS_BUS_READ_NEXT_OPERATION(&RxBufferInfoCan, hdr)) // <1>
{
switch (hdr->type) // <2>
{
Expand Down

0 comments on commit bb30d49

Please sign in to comment.