Skip to content

Commit

Permalink
Fix log event to log key code
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Jul 22, 2020
1 parent 5a150bd commit c3e1f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def socket_keystroke(message):
hid.send(hid_path, control_keys, hid_keycode)
except hid.WriteError as e:
logger.error('Failed to write key: %s (keycode=%d). %s', key_event.key,
key_event, e)
key_event.key_code, e)
socketio.emit('keystroke-received', {'success': False})
return
socketio.emit('keystroke-received', {'success': True})
Expand Down

0 comments on commit c3e1f18

Please sign in to comment.