Skip to content

Commit 86f1a7a

Browse files
committed
add error
1 parent a7fbfc6 commit 86f1a7a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

autd3-driver/src/error.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Created Date: 02/05/2022
55
* Author: Shun Suzuki
66
* -----
7-
* Last Modified: 30/12/2023
7+
* Last Modified: 01/01/2024
88
* Modified By: Shun Suzuki (suzuki@hapis.k.u-tokyo.ac.jp)
99
* -----
1010
* Copyright (c) 2022-2023 Shun Suzuki. All rights reserved.
@@ -106,6 +106,10 @@ pub enum AUTDInternalError {
106106
FrequencyDivisionTooSmall,
107107
#[error("Completion steps is too large")]
108108
CompletionStepsTooLarge,
109+
#[error("Invalid info type")]
110+
InvalidInfoType,
111+
#[error("Invalid GainSTM mode")]
112+
InvalidGainSTMMode,
109113
}
110114

111115
impl AUTDInternalError {
@@ -115,6 +119,8 @@ impl AUTDInternalError {
115119
0x81 => AUTDInternalError::InvalidMessageID,
116120
0x82 => AUTDInternalError::FrequencyDivisionTooSmall,
117121
0x83 => AUTDInternalError::CompletionStepsTooLarge,
122+
0x84 => AUTDInternalError::InvalidInfoType,
123+
0x85 => AUTDInternalError::InvalidGainSTMMode,
118124
_ => unreachable!(),
119125
}
120126
}

0 commit comments

Comments
 (0)