don't check the slider switch if CLI is disabled

this prevents a build error in desktop mode
This commit is contained in:
Andrew Tridgell 2011-10-09 22:39:23 +11:00
parent 06ddaa2d81
commit f4184d0b02

View File

@ -521,6 +521,7 @@ init_throttle_cruise()
}
}
#if CLI_ENABLED == ENABLED
#if BROKEN_SLIDER == 1
static boolean
@ -549,8 +550,8 @@ check_startup_for_CLI()
return (digitalRead(SLIDE_SWITCH_PIN) == 0);
}
#endif
#endif // BROKEN_SLIDER
#endif // CLI_ENABLED
/*
map from a 8 bit EEPROM baud rate to a real baud rate