Skip to content

Commit

Permalink
* Fix for #158
Browse files Browse the repository at this point in the history
* Cosmetic refactoring
  • Loading branch information
akopachov committed Jun 19, 2023
1 parent 44a0949 commit 5627bc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions totp_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ int32_t totp_app() {
}

// Affecting dolphin level
#if defined(DOLPHIN_DEED)
DOLPHIN_DEED(DolphinDeedPluginStart);
#else
dolphin_deed(DolphinDeedPluginStart);
#endif

// Set system callbacks
ViewPort* view_port = view_port_alloc();
Expand Down
4 changes: 2 additions & 2 deletions workers/type-code-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ void totp_type_code_worker_execute_automation(
while(i < code_buffer_size && (cb_char = code_buffer[i]) != 0) {
uint8_t char_index = CONVERT_CHAR_TO_DIGIT(cb_char);
if(char_index > 9) {
char_index = cb_char - 0x41 + 10;
char_index = cb_char - 'A' + 10;
}

if(char_index > 35) break;
if(char_index >= sizeof(hid_number_keys)) break;

uint16_t hid_kb_key = hid_number_keys[char_index];
if(char_index > 9) {
Expand Down

0 comments on commit 5627bc9

Please sign in to comment.