diff options
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
-rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index eb166c828..8319b34e9 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c | |||
@@ -914,14 +914,11 @@ void virtser_send(const uint8_t byte) { | |||
914 | */ | 914 | */ |
915 | static void setup_mcu(void) { | 915 | static void setup_mcu(void) { |
916 | /* Disable watchdog if enabled by bootloader/fuses */ | 916 | /* Disable watchdog if enabled by bootloader/fuses */ |
917 | MCUSR &= ~(1 << WDRF); | 917 | MCUSR &= ~_BV(WDRF); |
918 | wdt_disable(); | 918 | wdt_disable(); |
919 | 919 | ||
920 | /* Disable clock division */ | 920 | /* Disable clock division */ |
921 | // clock_prescale_set(clock_div_1); | 921 | clock_prescale_set(clock_div_1); |
922 | |||
923 | CLKPR = (1 << CLKPCE); | ||
924 | CLKPR = (0 << CLKPS3) | (0 << CLKPS2) | (0 << CLKPS1) | (0 << CLKPS0); | ||
925 | } | 922 | } |
926 | 923 | ||
927 | /** \brief Setup USB | 924 | /** \brief Setup USB |