Use variable to disable usb check at startup

Adds a define variable which when defined disables the usb startup
check. Modified the makefile to separate above define from bluetooth
dependancy
This commit is contained in:
yiancar committed 2017-05-26 21:58:43 +01:00
1 parent 7a4ec3bd92
commit fa1b92fbb1
2 files changed
+15 -7

No files matched your search

+1 -1
View File
@@ -1180,7 +1180,7 @@ int main(void)
print("Keyboard start.\n");
while (1) {
#if !defined(BLUETOOTH_ENABLE)
#if !defined(NO_USB_STARTUP_CHECK)
while (USB_DeviceState == DEVICE_STATE_Suspended) {
print("[s]");
suspend_power_down();