Fix release build

This commit is contained in:
hodasemi 2023-10-09 20:40:05 +02:00
parent f8fa859c29
commit 8ea4fc1aef
2 changed files with 9 additions and 1 deletions

View file

@ -39,6 +39,7 @@ impl CommandRequest {
body, body,
}, },
#[cfg(debug_assertions)]
name, name,
} }
} }

View file

@ -148,7 +148,14 @@ impl CommandE1Base {
#[cfg(debug_assertions)] name: &'static str, #[cfg(debug_assertions)] name: &'static str,
) -> Self { ) -> Self {
Self { Self {
command: CommandRequest::new(device_protocol_version, 0xE1, message_type, body, name), command: CommandRequest::new(
device_protocol_version,
0xE1,
message_type,
body,
#[cfg(debug_assertions)]
name,
),
} }
} }
} }