Stopping and Stopped notifications distinct

This commit is contained in:
2024-08-24 10:12:23 -04:00
parent 7c2d3df16b
commit 70947d5fa7
5 changed files with 20 additions and 11 deletions

View File

@ -14,7 +14,7 @@ pub enum Commands {
// Inputs from bluetooth
BluetoothUp {data: u8},
BluetoothDown {data: u8},
BluetoothStop {data: u8}, // There is no state where releasing the stop button induces a change.
BluetoothStop {_data: u8}, // There is no state where releasing the stop button induces a change.
// Internal messages
StopTimerExpired, // Sent when the 2 second stop sequence is complete
@ -26,7 +26,8 @@ pub enum Commands {
NotifyMotorUp,
NotifyMotorDown,
NotifyMotorStop,
NotifyMotorStopping,
NotifyMotorStopped, // Signaled after stop timeout
}
pub type CmdType = std::mem::Discriminant<Commands>;