Skip to content

Commit

Permalink
Improve Parameterization example.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwippermann committed Dec 24, 2023
1 parent 4864c0f commit f39ba9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/Parameterization.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,14 @@ int main(int argc, char **argv)
}

while (Result == RESOLVBUS_OK) {
uint32_t TimeoutUs = 0;
__WRAP(ResolVBus_LiveTransceiver_GetTimeout(&Parameterization.Transceiver, &TimeoutUs));

uint8_t ReadBytes [128] = {};
size_t ReadLength = 0;
if (Result == RESOLVBUS_OK) {
// TODO: read from serial port / socket / ... with short timeout / non-blocking
// `TimeoutUs` contains an indication, how long the timeout should be
}

time_t HostTimestamp = 0;
Expand Down

0 comments on commit f39ba9e

Please sign in to comment.