Skip to content

Commit 8b3208b

Browse files
committed
Removed redundant states
1 parent 39690db commit 8b3208b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

boards/argus/src/state_machine.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ use smlang::statemachine;
33
statemachine! {
44
transitions: {
55
*Init + Start = Idle,
6-
Idle | Recovery + WantsCollection = Collection,
6+
Idle + WantsCollection = Collection,
77
Idle + NoConfig = Calibration,
8-
Collection + WantsProcessing = Processing,
98
Calibration + Configured = Idle,
109
Fault + FaultCleared = Idle,
1110
_ + FaultDetected = Fault,
@@ -39,10 +38,6 @@ pub mod tests {
3938
// Should transition to collection when asked
4039
_ = sm.process_event(Events::WantsCollection).unwrap();
4140
assert!(*sm.state() == States::Collection);
42-
43-
// Should transition to processing when asked
44-
_ = sm.process_event(Events::WantsProcessing).unwrap();
45-
assert!(*sm.state() == States::Processing);
4641
}
4742

4843
#[test]

0 commit comments

Comments
 (0)