update STM32H7 example code
This commit is contained in:
@@ -169,7 +169,7 @@ impl MgmHandlerLis3Mdl {
|
||||
spi_com: SpiCommunication,
|
||||
shared_mgm_set: Arc<Mutex<MgmData>>,
|
||||
mode_leaf_helper: ModeLeafHelper,
|
||||
mode_timeout: Duration
|
||||
mode_timeout: Duration,
|
||||
) -> Self {
|
||||
Self {
|
||||
id,
|
||||
@@ -533,6 +533,7 @@ mod tests {
|
||||
SpiCommunication::Test(TestSpiInterface::default()),
|
||||
shared_mgm_set,
|
||||
mode_leaf_helper,
|
||||
Duration::from_millis(200),
|
||||
);
|
||||
Self {
|
||||
assembly_mode_request_tx,
|
||||
|
||||
@@ -188,7 +188,7 @@ fn main() {
|
||||
request_rx: mgm_0_mode_request_rx,
|
||||
report_tx: mgm_0_mode_report_tx,
|
||||
},
|
||||
Duration::from_millis(1000)
|
||||
Duration::from_millis(1000),
|
||||
);
|
||||
let mut mgm_1_handler = mgm::MgmHandlerLis3Mdl::new(
|
||||
mgm::MgmId::_1,
|
||||
@@ -203,7 +203,7 @@ fn main() {
|
||||
request_rx: mgm_1_mode_request_rx,
|
||||
report_tx: mgm_1_mode_report_tx,
|
||||
},
|
||||
Duration::from_millis(1000)
|
||||
Duration::from_millis(1000),
|
||||
);
|
||||
let mut mgm_assembly = mgm_assembly::Assembly::new(
|
||||
mgm_assembly::ParentQueueHelper {
|
||||
|
||||
Reference in New Issue
Block a user