]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/hhkb_rn42/rn42/main.c
Clean ADC code of battery_voltage()
[max/tmk_keyboard.git] / keyboard / hhkb_rn42 / rn42 / main.c
index 43d887067d7a8fec379259733bd655d0a990612e..42b09d8c8c4bf5f0a422e744fbb0f0e8dd980632 100644 (file)
@@ -17,8 +17,8 @@
 
 static int8_t sendchar_func(uint8_t c)
 {
-    sendchar(c);    // LUFA
     xmit(c);        // SUART
+    sendchar(c);    // LUFA
     return 0;
 }
 
@@ -85,7 +85,8 @@ int main(void)
     print("Keyboard start.\n");
     while (1) {
         while (USB_DeviceState == DEVICE_STATE_Suspended) {
-            suspend_power_down(WDTO_120MS);
+            print("[s]");
+            suspend_power_down();
             if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) {
                     USB_Device_SendRemoteWakeup();
             }