mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 23:10:22 +00:00
Correcting bug on DEL and DELETE key
This commit is contained in:
parent
295fd3d0c0
commit
33dd256dfb
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ static uint32_t mj_ducky_get_command_len(const char* line) {
|
|||
static bool mj_get_ducky_key(char* key, size_t keylen, MJDuckyKey* dk) {
|
||||
//FURI_LOG_D(TAG, "looking up key %s with length %d", key, keylen);
|
||||
for(uint i = 0; i < sizeof(mj_ducky_keys) / sizeof(MJDuckyKey); i++) {
|
||||
if(!strncmp(mj_ducky_keys[i].name, key, keylen)) {
|
||||
if(strncmp(mj_ducky_keys[i].name, key, keylen) == 0) {
|
||||
memcpy(dk, &mj_ducky_keys[i], sizeof(MJDuckyKey));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue