-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limits: create new header for numeric limits
Replaces them in `local_msg.hpp` header.
- Loading branch information
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file limits.hpp | ||
* @author Dávid Benko (davidbenko@davidbenko.dev) | ||
* @brief Numerical limits | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <climits> | ||
#include <cstdint> | ||
|
||
namespace kvik | ||
{ | ||
//! Peer preference "unknown" value | ||
constexpr int16_t PREF_UNKNOWN = INT16_MIN; | ||
|
||
//! RSSI "unknown" value | ||
constexpr int16_t RSSI_UNKNOWN = INT16_MIN; | ||
} // namespace kvik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters