summaryrefslogtreecommitdiffstats
path: root/recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'recv.c')
-rw-r--r--recv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/recv.c b/recv.c
index 31dbc0f..7217e47 100644
--- a/recv.c
+++ b/recv.c
@@ -23,7 +23,7 @@ int main(void)
uint8_t rxaddr[] = { 194, 178, 83 };
RX_DDR &= ~(1 << RX_PIN);
- RX_PORT &= ~(1 << RX_PIN);
+ RX_PORT |= (1 << RX_PIN);
PCICR |= (1 << RX_PCIE);
RX_PCMSK |= (1 << RX_PCINT);
@@ -53,5 +53,6 @@ int main(void)
ISR(RX_PCINTVEC)
{
cli();
+ uart_write_line("IRQ detected");
rxdr = 1;
}