Skip to content

Commit

Permalink
release testing
Browse files Browse the repository at this point in the history
  • Loading branch information
onlykey committed Nov 4, 2022
1 parent 1907b3d commit 9600daa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
21 changes: 11 additions & 10 deletions OnlyKey/OnlyKey.ino
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@
/*************************************/
//Firmware Build Options
/*************************************/
//#define DEBUG //Enable Serial Monitor, debug firmware
#define DEBUG //Enable Serial Monitor, debug firmware
#define STD_VERSION //Define for STD edition firmare, undefine for IN TRVL edition firmware
#define OK_Color //Define for hardware with color LED
#define FACTORYKEYS2 // Attestation key and other keys encrypted using CHIP ID and RNG for unique per device
//#define FACTORYKEYS2 // Attestation key and other keys encrypted using CHIP ID and RNG for unique per device
#ifndef STD_VERSION
#undef FACTORYKEYS2
#endif
Expand Down Expand Up @@ -423,20 +423,21 @@ void setup() {
fadeout();
#endif
SoftTimer.add(&taskKey);

if (!initcheck) {
//Default set to no challenge code required for OnlyKey Agent
//User can enable challenge code in OnlyKey app preferences
derived_key_challenge_mode = 1;
stored_key_challenge_mode = 1;
okeeprom_eeset_derived_key_challenge_mode(&derived_key_challenge_mode);
okeeprom_eeset_stored_key_challenge_mode(&stored_key_challenge_mode);
}

if (onlykeyhw==OK_HW_DUO) {
if (!initcheck) {
//Default no challenge code required for DUO
derived_key_challenge_mode = 1;
stored_key_challenge_mode = 1;
okeeprom_eeset_derived_key_challenge_mode(&derived_key_challenge_mode);
okeeprom_eeset_stored_key_challenge_mode(&stored_key_challenge_mode);
}
if (initialized == true && password.profile1hashevaluate()) {
payload(10);
}
}

}

extern elapsedMillis idletimer;
Expand Down
5 changes: 5 additions & 0 deletions usb_keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,11 @@ static void usb_keyboard_release_key(uint8_t key, uint8_t modifier)
keyboard_modifier_keys &= ~modifier;
send_required = 1;
usb_keyboard_send();
// SEND MODKEY MULTIPLE TIMES
usb_keyboard_send();
usb_keyboard_send();
usb_keyboard_send();
usb_keyboard_send();
}
}
if (key) {
Expand Down

0 comments on commit 9600daa

Please sign in to comment.