1
0
Fork 0

Fix Unicode EEPROM handling so it is consistent. (#4066)

* Fix Unicode EEPROM handling so it's consistant

* Remove changes to my userspace

* Optimize variables used

* fix functions

* additional cleanup

* Add False Flag

* rename function
This commit is contained in:
Drashna Jael're 2018-10-18 21:35:15 -07:00 committed by Jack Humbert
parent 7e1b57add4
commit 7222e3691b
5 changed files with 17 additions and 15 deletions

View file

@ -17,15 +17,10 @@
#include "action_util.h"
#include "eeprom.h"
static uint8_t first_flag = 0;
bool process_unicode(uint16_t keycode, keyrecord_t *record) {
if (keycode > QK_UNICODE && record->event.pressed) {
if (first_flag == 0) {
set_unicode_input_mode(eeprom_read_byte(EECONFIG_UNICODEMODE));
first_flag = 1;
}
uint16_t unicode = keycode & 0x7FFF;
unicode_input_mode_init();
unicode_input_start();
register_hex(unicode);
unicode_input_finish();