summaryrefslogtreecommitdiff
path: root/src/cc1111/ao_radio.c
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2016-09-05 21:01:35 -0600
committerBdale Garbee <bdale@gag.com>2016-09-05 21:01:35 -0600
commit6af87e5cf98e644d2455faf6526a9f11880686f5 (patch)
treed23017ea0a0fd693cbef18979c35cfca7ce1db69 /src/cc1111/ao_radio.c
parent6ec9f2a78aa8c99d48006b14c936c59edd08addf (diff)
parent168c39a37415b1bdc09aa00bbaaafb5d879ce8bd (diff)
Merge branch 'branch-1.6' into debian
Diffstat (limited to 'src/cc1111/ao_radio.c')
-rw-r--r--src/cc1111/ao_radio.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cc1111/ao_radio.c b/src/cc1111/ao_radio.c
index cead0364..166d14d5 100644
--- a/src/cc1111/ao_radio.c
+++ b/src/cc1111/ao_radio.c
@@ -3,7 +3,8 @@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -587,13 +588,13 @@ ao_radio_rdf_abort(void)
/* Output carrier */
-static __xdata ao_radio_test_on;
+static __xdata radio_test_on;
void
ao_radio_test(uint8_t on)
{
if (on) {
- if (!ao_radio_test_on) {
+ if (!radio_test_on) {
#if HAS_MONITOR
ao_monitor_disable();
#endif
@@ -605,13 +606,13 @@ ao_radio_test(uint8_t on)
#endif
ao_radio_get(0xff);
RFST = RFST_STX;
- ao_radio_test_on = 1;
+ radio_test_on = 1;
}
} else {
- if (ao_radio_test_on) {
+ if (radio_test_on) {
ao_radio_idle();
ao_radio_put();
- ao_radio_test_on = 0;
+ radio_test_on = 0;
#if HAS_MONITOR
ao_monitor_enable();
#endif