]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Reduce compile size of the Lily58 Keyboard (#5412)
authorDrashna Jaelre <drashna@live.com>
Mon, 18 Mar 2019 21:21:10 +0000 (14:21 -0700)
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>
Mon, 18 Mar 2019 21:21:10 +0000 (14:21 -0700)
keyboards/lily58/config.h
keyboards/lily58/keymaps/default/keymap.c
keyboards/lily58/rules.mk

index b88ec06bf41fd2bab2f29a32243dc6f402a86b75..fb1cdf3962a1dff493b83725c1b00b0407717e03 100644 (file)
@@ -24,11 +24,5 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define USE_I2C
 #define USE_SERIAL
 
-#ifdef USE_Link_Time_Optimization
-  // LTO has issues with macros (action_get_macro) and "functions" (fn_actions),
-  //  so just disable them
-  #define NO_ACTION_MACRO
-  #define NO_ACTION_FUNCTION
-
-  #define DISABLE_LEADER
-#endif // USE_Link_Time_Optimization
\ No newline at end of file
+#define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
index 5ff5dc31825447fb5b269d8a98bf27575dfb3d20..b8dda17d535d25a206f1f471e51db96aee2335b4 100644 (file)
@@ -21,7 +21,7 @@ extern uint8_t is_master;
 #define _QWERTY 0
 #define _LOWER 1
 #define _RAISE 2
-#define _ADJUST 16
+#define _ADJUST 3
 
 enum custom_keycodes {
   QWERTY = SAFE_RANGE,
@@ -111,7 +111,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  *                   | LAlt | LGUI |LOWER | /Space  /       \Enter \  |RAISE |BackSP| RGUI |
  *                   |      |      |      |/       /         \      \ |      |      |      |
  *                   `----------------------------'           '------''--------------------'
- */ 
+ */
   [_ADJUST] = LAYOUT( \
   XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,                   XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
   XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,                   XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
@@ -235,4 +235,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
         break;
   }
   return true;
-}
\ No newline at end of file
+}
index f6b922eeac2f3f1346156ca412422c5e524362f0..f2947c81cc0ac4594927be30f3f0f61db676c880 100644 (file)
@@ -65,9 +65,7 @@ MIDI_ENABLE = no            # MIDI controls
 AUDIO_ENABLE = no           # Audio output on port C6
 UNICODE_ENABLE = no         # Unicode
 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
-RGBLIGHT_ENABLE = no       # Enable WS2812 RGB underlight. 
-SUBPROJECT_rev1 = no
-USE_I2C = yes
+RGBLIGHT_ENABLE = no       # Enable WS2812 RGB underlight.
 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend