Skip to content

Commit

Permalink
debug derives
Browse files Browse the repository at this point in the history
  • Loading branch information
liamkinne authored Mar 20, 2024
1 parent 930ae13 commit f67963c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use crate::{calc_crc16, calc_lrc, ErrorKind, ModbusFrameBuf, ModbusProto, Vector
/// Modbus client generator/processor
///
/// One object can be used for multiple calls
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct ModbusRequest {
/// transaction id, (TCP/UDP only), default: 1. To change, set the value manually
Expand Down
1 change: 1 addition & 0 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ macro_rules! tcp_response_set_data_len {
};
}

#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct ModbusFrame<'a, V: VectorTrait<u8>> {
pub unit_id: u8,
Expand Down
1 change: 1 addition & 0 deletions src/server/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub type ModbusStorageFull =

/// Contains standard Modbus register contexts
#[allow(clippy::module_name_repetitions)]
#[derive(Debug)]
#[cfg_attr(feature = "with_serde", derive(Deserialize, Serialize))]
#[cfg_attr(feature = "with_bincode", derive(Decode, Encode))]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
Expand Down

0 comments on commit f67963c

Please sign in to comment.