Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 489 → Rev 488

/C-OSD/trunk/config.c
42,36 → 42,36
uint8_t EEMEM ee_COSD_FLAGS;
 
// store init strings in progmem
const char init_0[] PROGMEM = "C-OSD Initialisation";
const char init_1[] PROGMEM = "FC only Mode";
const char init_2[] PROGMEM = "NaviCtrl Mode";
const char init_3[] PROGMEM = "Guessing Number of Cells";
const char init_4[] PROGMEM = "Number of Cells:";
const char init_5[] PROGMEM = "Warn Voltage :";
const char init_6[] PROGMEM = "Max Voltage :";
const char* init_point[] PROGMEM = {init_0, init_1, init_2, init_3, init_4, init_5, init_6};
char init_0[] PROGMEM = "C-OSD Initialisation";
char init_1[] PROGMEM = "FC only Mode";
char init_2[] PROGMEM = "NaviCtrl Mode";
char init_3[] PROGMEM = "Guessing Number of Cells";
char init_4[] PROGMEM = "Number of Cells:";
char init_5[] PROGMEM = "Warn Voltage :";
char init_6[] PROGMEM = "Max Voltage :";
char* init_point[] PROGMEM = {init_0, init_1, init_2, init_3, init_4, init_5, init_6};
 
const char ee_message0[] PROGMEM = "Loading Data from EEPROM";
const char ee_message1[] PROGMEM = "No saved Data in EEPROM";
const char* ee_msg[] PROGMEM = {ee_message0, ee_message1};
char ee_message0[] PROGMEM = "Loading Data from EEPROM";
char ee_message1[] PROGMEM = "No saved Data in EEPROM";
char* ee_msg[] PROGMEM = {ee_message0, ee_message1};
 
// video modes
const char VM_PAL[] PROGMEM = "PAL ";
const char VM_NTSC[] PROGMEM = "NTSC";
char VM_PAL[] PROGMEM = "PAL ";
char VM_NTSC[] PROGMEM = "NTSC";
 
// menu strings to progmem
const char menu_item0[] PROGMEM = "Video Mode";
const char menu_item1[] PROGMEM = "Full HUD";
const char menu_item2[] PROGMEM = "Art.Horizon in HUD";
const char menu_item3[] PROGMEM = "Big Vario bar";
const char menu_item4[] PROGMEM = "Statistics";
const char menu_item5[] PROGMEM = "Warnings"; // TODO: do it!
const char menu_item6[] PROGMEM = "Reset uptime";
const char menu_item7[] PROGMEM = "Request OSD-data";
const char menu_item8[] PROGMEM = "Disable Debug-data";
const char menu_item9[] PROGMEM = "Save config";
const char menu_item10[] PROGMEM = "EXIT";
const char* menu[] = {menu_item0, menu_item1, menu_item2, menu_item3, menu_item4,
char menu_item0[] PROGMEM = "Video Mode";
char menu_item1[] PROGMEM = "Full HUD";
char menu_item2[] PROGMEM = "Art.Horizon in HUD";
char menu_item3[] PROGMEM = "Big Vario bar";
char menu_item4[] PROGMEM = "Statistics";
char menu_item5[] PROGMEM = "Warnings"; // TODO: do it!
char menu_item6[] PROGMEM = "Reset uptime";
char menu_item7[] PROGMEM = "Request OSD-data";
char menu_item8[] PROGMEM = "Disable Debug-data";
char menu_item9[] PROGMEM = "Save config";
char menu_item10[] PROGMEM = "EXIT";
char* menu[] = {menu_item0, menu_item1, menu_item2, menu_item3, menu_item4,
menu_item5, menu_item6, menu_item7, menu_item8, menu_item9, menu_item10};
 
/**
197,7 → 197,7
/**
* some sort of clicking response in the menu
*/
void config_menu_doclick(uint8_t chosen, const char* menu[]) {
void config_menu_doclick(uint8_t chosen, char** menu) {
write_ascii_string(4, chosen + 2, "DONE ");
_delay_ms(500);
write_ascii_string_pgm(4, chosen + 2, menu[chosen]);