aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/avr/suspend.c
diff options
context:
space:
mode:
authorLuiz Ribeiro <luizribeiro@gmail.com>2017-01-21 12:30:06 -0500
committerLuiz Ribeiro <luizribeiro@gmail.com>2017-01-21 12:55:19 -0500
commitf7462aaa613a08ba4b86dbb912ce26722cfccaff (patch)
treecd7bd4b109fdb9d6f5253885138e1b34ee277e12 /tmk_core/common/avr/suspend.c
parent10ff9623214ee62935a17b3f68d5180756b7a27b (diff)
downloadqmk_firmware-f7462aaa613a08ba4b86dbb912ce26722cfccaff.tar.gz
qmk_firmware-f7462aaa613a08ba4b86dbb912ce26722cfccaff.zip
Got ps2avrGB to work with the V-USB protocol
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