Skip to content

Commit 1833ca1

Browse files
committed
Merge pull request #292 from obones/command_warning
Fix warning in command.c
2 parents bc9dc6f + 2fc9ae4 commit 1833ca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/command.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ static void print_eeconfig(void)
178178

179179
static bool command_common(uint8_t code)
180180
{
181+
#ifdef KEYBOARD_LOCK_ENABLE
181182
static host_driver_t *host_driver = 0;
183+
#endif
182184
switch (code) {
183185
#ifdef SLEEP_LED_ENABLE
184186
case KC_Z:

0 commit comments

Comments
 (0)