Skip to content

Commit

Permalink
add named constants for heartbeat delays
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptkeeper committed Sep 1, 2024
1 parent b82b3b2 commit 5f91747
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tinylor.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ typedef union lor_effect_data {
/// @brief The length of the LOR heartbeat message \p LOR_HEARTBEAT_BYTES.
#define LOR_HEARTBEAT_SIZE 5

/// @def LOR_HEARTBEAT_DELAY_MS
/// @brief The intended delay in milliseconds between sending LOR heartbeats.
#define LOR_HEARTBEAT_DELAY_MS 500

/// @def LOR_HEARTBEAT_DELAY_NS
/// @brief The intended delay in nanoseconds between sending LOR heartbeats.
#define LOR_HEARTBEAT_DELAY_NS 500000000

/// @struct lor_req
/// @brief Represents a request to apply an effect to a set of channels on a
/// specific unit. The effect may require additional arguments, which are
Expand Down
8 changes: 8 additions & 0 deletions tinylor.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ typedef union lor_effect_data {
/// @brief The length of the LOR heartbeat message \p LOR_HEARTBEAT_BYTES.
#define LOR_HEARTBEAT_SIZE 5

/// @def LOR_HEARTBEAT_DELAY_MS
/// @brief The intended delay in milliseconds between sending LOR heartbeats.
#define LOR_HEARTBEAT_DELAY_MS 500

/// @def LOR_HEARTBEAT_DELAY_NS
/// @brief The intended delay in nanoseconds between sending LOR heartbeats.
#define LOR_HEARTBEAT_DELAY_NS 500000000

/// @struct lor_req
/// @brief Represents a request to apply an effect to a set of channels on a
/// specific unit. The effect may require additional arguments, which are
Expand Down

0 comments on commit 5f91747

Please sign in to comment.