diff options
author | Keith Packard <keithp@keithp.com> | 2011-11-12 18:44:36 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-11-12 18:44:36 -0800 |
commit | 5972c642f0de0789e90268bfa19ef8b51c06eebc (patch) | |
tree | 5a586d149629d5e07bd0f682e4ce0c001367a96d /src/ao_radio_cmac.c | |
parent | ef7f86453d686a49882e8c1b88a59228c4c631a9 (diff) |
altos: Handle internal and external telem monitoring requests
Record separate internal vs external monitoring state, allowing
both to happen at the same time, and when either is turned off, the
other keeps working.
This also adds disable/enable so that other radio users can
temporarily take over the radio; monitoring will resume when the other
radio user is finished.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_radio_cmac.c')
-rw-r--r-- | src/ao_radio_cmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_radio_cmac.c b/src/ao_radio_cmac.c index 41fbbe1f..e263f0db 100644 --- a/src/ao_radio_cmac.c +++ b/src/ao_radio_cmac.c @@ -78,7 +78,7 @@ radio_cmac_send(uint8_t len) __reentrant ao_config_get(); #if HAS_MONITOR - ao_set_monitor(0); + ao_monitor_set(0); #endif ao_mutex_get(&ao_aes_mutex); @@ -107,7 +107,7 @@ radio_cmac_recv(uint8_t len, uint16_t timeout) __reentrant len = round_len(len); #if HAS_MONITOR - ao_set_monitor(0); + ao_monitor_set(0); #endif if (timeout) ao_alarm(timeout); |