Skip to content

Commit

Permalink
* Monitor app uses CONFIG_DIAG_PORT rather than 'PORTA'
Browse files Browse the repository at this point in the history
  • Loading branch information
bootc committed Apr 9, 2011
1 parent 785db3a commit 4ec09f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ PROCESS_THREAD(monitor_process, ev, data) {
#if CONFIG_APPS_NETWORK
if (ev == net_event) {
if (net_status.configured) {
PORTA |= _BV(PINA1);
CONFIG_DIAG_PORT |= _BV(CONFIG_DIAG_PIN1);
}
else {
PORTA &= ~_BV(PINA1);
CONFIG_DIAG_PORT &= ~_BV(CONFIG_DIAG_PIN1);
}
}
else
Expand All @@ -61,7 +61,7 @@ PROCESS_THREAD(monitor_process, ev, data) {
etimer_restart(&heartbeat);

// Toggle heartbeat LED
PORTA ^= _BV(PINA0);
CONFIG_DIAG_PORT ^= _BV(CONFIG_DIAG_PIN0);
}
}
else if (ev == PROCESS_EVENT_EXIT) {
Expand Down

0 comments on commit 4ec09f0

Please sign in to comment.