Skip to content

Commit

Permalink
Merge pull request #318 from sousaaguilherme/fix-ble
Browse files Browse the repository at this point in the history
Missing if in case of ISO_REPLACEMENT in BLE release method
  • Loading branch information
bmorcelli authored Oct 7, 2024
2 parents e2baf04 + c2678da commit 0a4b36a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Bad_Usb_Lib/BleKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ size_t BleKeyboard::release(uint8_t k)
_keyReport.modifiers &= ~(0x02); // the left shift modifier
k &= 0x7F;
}
if (k == 0x32) //ISO_REPLACEMENT
k = 0x64; //ISO_KEY
}

// Test the key report to see if k is present. Clear it if it exists.
Expand Down

0 comments on commit 0a4b36a

Please sign in to comment.