* Channel is saved in EEPROM

* Allow serial port to work with more term emulators
This commit is contained in:
c_oflynn 2008-10-27 18:03:25 +00:00
parent 545eaedee4
commit 46853d9395
3 changed files with 17 additions and 5 deletions

View file

@ -59,6 +59,7 @@
#include <stdio.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include <util/delay.h>
#define BUF ((struct uip_eth_hdr *)&uip_buf[0])
@ -221,6 +222,8 @@ void menu_process(char c)
//If valid input, change it
if (tempchannel) {
radio_set_operating_channel(tempchannel);
eeprom_write_byte(9, tempchannel); //Write channel
eeprom_write_byte(10, ~tempchannel); //Bit inverse as check
}
menustate = normal;