git.droids-corp.org
/
beacon-rx-433.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix beep when beacon is detected
[beacon-rx-433.git]
/
main.c
diff --git
a/main.c
b/main.c
index
290a3e3
..
d60f4a8
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-330,7
+330,7
@@
static uint8_t get_input(int i)
#ifdef HOST_VERSION
return !!x[i];
#else
#ifdef HOST_VERSION
return !!x[i];
#else
- return !!(PINB &
RADIO_BIT
);
+ return !!(PINB &
(1 << RADIO_BIT)
);
#endif
}
#endif
}
@@
-371,13
+371,6
@@
int main(void)
DDRB |= (1 << LED_BIT) | (1 << BUZ_BIT);
#endif
DDRB |= (1 << LED_BIT) | (1 << BUZ_BIT);
#endif
- while (1) {
- PORTB |= (1 << LED_BIT);
- wait_ms(500);
- PORTB &= ~(1 << LED_BIT);
- wait_ms(500);
- }
-
i = 0;
init_timer();
i = 0;
init_timer();
@@
-405,8
+398,8
@@
int main(void)
set_output(i);
set_output(i);
-#ifdef HOST_VERSION
i ++;
i ++;
+#ifdef HOST_VERSION
if (i >= sizeof(x))
break;
#endif
if (i >= sizeof(x))
break;
#endif