Stopping and Stopped notifications distinct
This commit is contained in:
@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user