X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=protocol%2Fpjrc%2Fmain.c;h=4f87a1736458851e980b9839da15e336ed770ce9;hb=541913029150d57e83396293d35807a16d3755e8;hp=1ef87f8651c8a2ee415e7d72590156b20db8c5b8;hpb=eea3b699a6cf9976fc0179633feee6d079e5db78;p=max%2Ftmk_keyboard.git diff --git a/protocol/pjrc/main.c b/protocol/pjrc/main.c index 1ef87f86..4f87a173 100644 --- a/protocol/pjrc/main.c +++ b/protocol/pjrc/main.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "keyboard.h" #include "usb.h" @@ -60,7 +61,7 @@ int main(void) #endif while (1) { while (suspend) { - suspend_power_down(); + suspend_power_down(WDTO_120MS); if (remote_wakeup && suspend_wakeup_condition()) { usb_remote_wakeup(); }