Change name, basic pairing indicator flag

This commit is contained in:
2024-08-28 21:06:38 -04:00
parent f5cd9872bd
commit 326660ab43
5 changed files with 100 additions and 39 deletions

View File

@ -2,8 +2,9 @@
use strum_macros::EnumCount as EnumCountMacro;
use std::mem::discriminant;
use std::sync::Arc;
#[derive(Clone, Copy, EnumCountMacro, Debug)]
#[derive(Clone, EnumCountMacro, Debug)]
pub enum Commands {
// Inputs sent from the PIC microcontroller
@ -15,6 +16,7 @@ pub enum Commands {
BluetoothUp {data: u8},
BluetoothDown {data: u8},
BluetoothStop {_data: u8}, // There is no state where releasing the stop button induces a change.
BluetoothName { data: Arc<String>},
// Internal messages
StopTimerExpired, // Sent when the 2 second stop sequence is complete