X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=converter%2Fusb_usb%2Fmain.cpp;h=76e88922cb41205243ce78da89263033ca48cc0b;hb=06e3f8485612e5f7e46711530a63312c5f62a80b;hp=2d9f56025e7a5298bae766d28abfd36e56b1f038;hpb=3eae475f8b98152b466f8f3763a74f0ef2330d9d;p=max%2Ftmk_keyboard.git diff --git a/converter/usb_usb/main.cpp b/converter/usb_usb/main.cpp index 2d9f5602..76e88922 100644 --- a/converter/usb_usb/main.cpp +++ b/converter/usb_usb/main.cpp @@ -42,7 +42,11 @@ static void LUFA_setup(void) wdt_disable(); /* Disable clock division */ +#if (F_CPU == 8000000) + clock_prescale_set(clock_div_2); // 16MHz crystal divided by 2 +#else clock_prescale_set(clock_div_1); +#endif // Leonardo needs. Without this USB device is not recognized. USB_Disable();