From 98b69e1bff4f05aa8a17552e7b7fdeb2bd40d94c Mon Sep 17 00:00:00 2001 From: dak664 Date: Tue, 16 Feb 2010 22:55:20 +0000 Subject: [PATCH] No sniffer yet for RF230BB --- cpu/avr/dev/usb/serial/cdc_task.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/avr/dev/usb/serial/cdc_task.c b/cpu/avr/dev/usb/serial/cdc_task.c index 14f2d1649..7cbf3bba2 100644 --- a/cpu/avr/dev/usb/serial/cdc_task.c +++ b/cpu/avr/dev/usb/serial/cdc_task.c @@ -222,9 +222,11 @@ void menu_process(char c) //If valid input, change it if (tempchannel) { +#if !RF230BB radio_set_operating_channel(tempchannel); eeprom_write_byte((uint8_t *) 9, tempchannel); //Write channel eeprom_write_byte((uint8_t *)10, ~tempchannel); //Bit inverse as check +#endif } menustate = normal; @@ -296,9 +298,11 @@ void menu_process(char c) break; case 'c': +#if !RF230BB PRINTF_P(PSTR("Select 802.15.4 Channel in range 11-26 [%d]: "), radio_get_operating_channel()); menustate = channel; channel_string_i = 0; +#endif break; @@ -313,7 +317,9 @@ void menu_process(char c) PRINTF_P(PSTR("decompress 6lowpan headers\n\r * Will ")); if (usbstick_mode.raw == 0) { PRINTF_P(PSTR("not "));} PRINTF_P(PSTR("Output raw 802.15.4 frames\n\r ")); +#if !RF230BB PRINTF_P(PSTR(" * Operates on channel %d\n\r"), radio_get_operating_channel()); +#endif break; case 'u':