Basic bluetooth functionality

This commit is contained in:
2024-08-18 10:32:39 -04:00
parent 3185746213
commit cc72a23176
6 changed files with 185 additions and 65 deletions

View File

@ -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?;