Skip to content

Commit

Permalink
add #[repr(C)] to GainSTMOption
Browse files Browse the repository at this point in the history
  • Loading branch information
s5suzuki committed Jan 23, 2025
1 parent ef7b1a9 commit 9b8bba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autd3-driver/src/datagram/stm/gain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub trait GainSTMGenerator: std::fmt::Debug {

/// The option for the [`GainSTM`].
#[derive(Copy, Clone, Debug, PartialEq)]
#[repr(C)]
pub struct GainSTMOption {
/// The mode of the STM. The default is [`GainSTMMode::PhaseIntensityFull`].
pub mode: GainSTMMode,
Expand Down

0 comments on commit 9b8bba2

Please sign in to comment.