-
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.
Update boards, timestamp, and sender to node. (#2)
* Update boards, timestamp, and sender to node. * Remove proptest. * Update attributes. * :(
- Loading branch information
1 parent
b616b56
commit e976718
Showing
6 changed files
with
36 additions
and
47 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
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
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
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
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,19 @@ | ||
use messages_proc_macros_lib::common_derives; | ||
|
||
#[common_derives] | ||
#[derive(Copy)] | ||
pub enum Node { | ||
PressureBoard, | ||
TemperatureBoard, | ||
StrainBoard, | ||
} | ||
|
||
impl From<Node> for u16 { | ||
fn from(node: Node) -> Self { | ||
match node { | ||
Node::PressureBoard => 0, | ||
Node::TemperatureBoard => 1, | ||
Node::StrainBoard => 2, | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.