]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Change table names
authorDrashna Jaelre <drashna@live.com>
Thu, 11 Apr 2019 22:21:45 +0000 (15:21 -0700)
committerskullydazed <skullydazed@users.noreply.github.com>
Fri, 12 Apr 2019 21:07:05 +0000 (14:07 -0700)
quantum/quantum.c
quantum/quantum.h

index 8ac3a57dca43f0dfcd1c290df900bed6c1b7a95d..f5e3b63f8d2e0ce1e3dcc40c46c0ff9ebc9b65e6 100644 (file)
@@ -851,7 +851,7 @@ const bool ascii_to_shift_lut[0x80] PROGMEM = {
 };
 
 __attribute__ ((weak))
-const bool ascii_to_alt_lut[0x80] PROGMEM = {
+const bool ascii_to_altgr_lut[0x80] PROGMEM = {
     0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0,
@@ -953,16 +953,16 @@ void send_string_with_delay_P(const char *str, uint8_t interval) {
 void send_char(char ascii_code) {
   uint8_t keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]);
   bool is_shifted = pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code]);
-  bool is_alted = pgm_read_byte(&ascii_to_alt_lut[(uint8_t)ascii_code]);
+  bool is_altgred = pgm_read_byte(&ascii_to_altgr_lut[(uint8_t)ascii_code]);
 
   if (is_shifted) {
     register_code(KC_LSFT);
   }
-  if (is_alted) {
+  if (is_altgred) {
     register_code(KC_RALT);
   }
   tap_code(keycode);
-  if (is_alted) {
+  if (is_altgred) {
     unregister_code(KC_RALT);
   }
   if (is_shifted) {
index f7b278cefd7d480e7fe33ac9bc92f81e6ec6da09..e2f467125ee7faafb2ca4a47237a3bb8e5b99e49 100644 (file)
@@ -206,7 +206,7 @@ extern uint32_t default_layer_state;
 
 #define SEND_STRING(str) send_string_P(PSTR(str))
 extern const bool ascii_to_shift_lut[0x80];
-extern const bool ascii_to_alt_lut[0x80];
+extern const bool ascii_to_altgr_lut[0x80];
 extern const uint8_t ascii_to_keycode_lut[0x80];
 void send_string(const char *str);
 void send_string_with_delay(const char *str, uint8_t interval);