Basic bluetooth functionality
This commit is contained in:
@ -44,7 +44,7 @@ impl Controller {
|
||||
Commands::PicRecvStop,
|
||||
Commands::BluetoothUp{data: 0},
|
||||
Commands::BluetoothDown{data: 0},
|
||||
Commands::BluetoothStop{_data: 0},
|
||||
Commands::BluetoothStop{data: 0},
|
||||
Commands::StopTimerExpired,
|
||||
Commands::ButtonTimerExpired,
|
||||
];
|
||||
@ -83,6 +83,7 @@ impl Controller {
|
||||
|
||||
async fn exit_state(&mut self, old_s: &ControllerStates) -> Result <()> {
|
||||
match old_s {
|
||||
//TODO: We need to notify the BLE controller!
|
||||
ControllerStates::Stopped => {}
|
||||
ControllerStates::Stopping => {
|
||||
self.send.send(Commands::StopTimerClear).await?;
|
||||
|
||||
Reference in New Issue
Block a user