add no-std
This commit is contained in:
@@ -18,6 +18,14 @@ pub fn calculate_checksum(length: u8, message_identifier: MessageIdentifier, fun
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{enums::{FunctionCode, MessageIdentifier}, message::Protocol300Message, utils::calculate_checksum};
|
||||
#[cfg(not(feature = "std"))]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::vec;
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::vec::Vec;
|
||||
|
||||
#[test]
|
||||
fn test_check_checksum_1() {
|
||||
|
||||
Reference in New Issue
Block a user