aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/avr/suspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/avr/suspend.c')
-rw-r--r--tmk_core/common/avr/suspend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/common/avr/suspend.c b/tmk_core/common/avr/suspend.c
index 0c81e8361..0e97892d9 100644
--- a/tmk_core/common/avr/suspend.c
+++ b/tmk_core/common/avr/suspend.c
@@ -65,6 +65,7 @@ static uint8_t wdt_timeout = 0;
65 65
66static void power_down(uint8_t wdto) 66static void power_down(uint8_t wdto)
67{ 67{
68#ifndef __AVR_ATmega32A__
68#ifdef PROTOCOL_LUFA 69#ifdef PROTOCOL_LUFA
69 if (USB_DeviceState == DEVICE_STATE_Configured) return; 70 if (USB_DeviceState == DEVICE_STATE_Configured) return;
70#endif 71#endif
@@ -99,6 +100,7 @@ static void power_down(uint8_t wdto)
99 100
100 // Disable watchdog after sleep 101 // Disable watchdog after sleep
101 wdt_disable(); 102 wdt_disable();
103#endif
102} 104}
103#endif 105#endif
104 106