Skip to content

Commit

Permalink
chore: bump version, minor comment update
Browse files Browse the repository at this point in the history
Signed-off-by: Haobo Gu <[email protected]>
  • Loading branch information
HaoboGu committed May 17, 2024
1 parent 1973549 commit 550e251
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rmk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rmk"
version = "0.1.13"
version = "0.1.14"
authors = ["Haobo Gu <[email protected]>"]
description = "Keyboard firmware written in Rust"
homepage = "https://github.com/haobogu/rmk"
Expand Down
1 change: 0 additions & 1 deletion rmk/src/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub(crate) async fn keyboard_ble_task<
Timer::after_secs(1).await;
loop {
let _ = keyboard.scan_matrix().await;

keyboard.send_keyboard_report(ble_keyboard_writer).await;
keyboard.send_media_report(ble_media_writer).await;
keyboard
Expand Down
3 changes: 1 addition & 2 deletions rmk/src/ble/nrf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ pub async fn initialize_nrf_ble_keyboard_with_config_and_run<

// If there is a USB device, things become a little bit complex because we need to enable switching between USB and BLE.
// Remember that USB ALWAYS has higher priority than BLE.
//
// If no USB device, just start BLE advertising
#[cfg(not(feature = "nrf52832_ble"))]
if let Some(ref mut usb_device) = usb_device {
// Check and run via USB first
Expand Down Expand Up @@ -276,6 +274,7 @@ pub async fn initialize_nrf_ble_keyboard_with_config_and_run<
}
}
} else {
// If no USB device, just start BLE advertising
match adv_fut.await {
Ok(conn) => {
run_ble_keyboard(
Expand Down

0 comments on commit 550e251

Please sign in to comment.