diff options
Diffstat (limited to 'software/hhd70dongle')
-rw-r--r-- | software/hhd70dongle/hhd70dongle.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/software/hhd70dongle/hhd70dongle.c b/software/hhd70dongle/hhd70dongle.c index 35d2d38..0827a4a 100644 --- a/software/hhd70dongle/hhd70dongle.c +++ b/software/hhd70dongle/hhd70dongle.c @@ -65,6 +65,12 @@ static void powerdown_hhd70(void) cc1101_powerdown(); } +static void osc_off_hhd70(void) +{ + printf("disabling CC1101 oscillator.\r\n"); + cc1101_osc_off(); +} + static uint32_t print_actual_freq(void) { uint32_t f = cc1101_get_freq_hz(); @@ -117,6 +123,8 @@ static void handle_cmd(uint8_t cmd) case 'P': powerdown_hhd70(); break; case 'I': cc1101_idle(); print_status(); break; + case 'O': osc_off_hhd70(); break; + case 'C': cc1101_calibrate(); print_status(); break; case 'f': print_actual_freq(); break; case 's': print_status(); break; |