summaryrefslogtreecommitdiffstats
path: root/rf_test
diff options
context:
space:
mode:
Diffstat (limited to 'rf_test')
-rw-r--r--rf_test/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rf_test/send.c b/rf_test/send.c
index daa154f..6bb14f0 100644
--- a/rf_test/send.c
+++ b/rf_test/send.c
@@ -43,9 +43,9 @@ static inline void unlock(void)
static inline int is_btn_pressed(unsigned char btn)
{
- if (!((PINB >> btn) & 0x01)) {
+ if (!((PIND >> btn) & 0x01)) {
_delay_us(2000);
- return !((PINB >> btn) & 0x01);
+ return !((PIND >> btn) & 0x01);
}
return 0;