Browse Source

Fix call parameter of suspend_power_down()

tags/v1.9
Jun Wako 9 years ago
parent
commit
abf482de8e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      protocol/bluefruit/main.c
  2. 1
    1
      protocol/pjrc/main.c

+ 1
- 1
protocol/bluefruit/main.c View File

dprintf("Starting main loop"); dprintf("Starting main loop");
while (1) { while (1) {
while (suspend) { while (suspend) {
suspend_power_down(WDTO_120MS);
suspend_power_down();
if (remote_wakeup && suspend_wakeup_condition()) { if (remote_wakeup && suspend_wakeup_condition()) {
usb_remote_wakeup(); usb_remote_wakeup();
} }

+ 1
- 1
protocol/pjrc/main.c View File

#endif #endif
while (1) { while (1) {
while (suspend) { while (suspend) {
suspend_power_down(WDTO_120MS);
suspend_power_down();
if (remote_wakeup && suspend_wakeup_condition()) { if (remote_wakeup && suspend_wakeup_condition()) {
usb_remote_wakeup(); usb_remote_wakeup();
} }

Loading…
Cancel
Save