New ML support - changed _SEC_LANG reserved space to 10kb, added debug code
This commit is contained in:
parent
f00a9ce636
commit
da3432e237
2 changed files with 6 additions and 4 deletions
|
@ -1265,9 +1265,11 @@ void setup()
|
||||||
/// }
|
/// }
|
||||||
lang_select(0);
|
lang_select(0);
|
||||||
puts_P(_n("\nNew ML support"));
|
puts_P(_n("\nNew ML support"));
|
||||||
printf_P(_n(" lang_selected =%d\n"), lang_selected);
|
printf_P(_n(" lang_selected = %d\n"), lang_selected);
|
||||||
printf_P(_n(" &_SEC_LANG =%04x\n"), &_SEC_LANG);
|
printf_P(_n(" &_SEC_LANG = 0x%04x\n"), &_SEC_LANG);
|
||||||
printf_P(_n(" sizeof(_SEC_LANG) =%04x\n"), sizeof(_SEC_LANG));
|
printf_P(_n(" sizeof(_SEC_LANG) = 0x%04x\n"), sizeof(_SEC_LANG));
|
||||||
|
uint16_t ptr_lang_table0 = ((uint16_t)(&_SEC_LANG) + 0xff) & 0xff00;
|
||||||
|
printf_P(_n(" &_lang_table0 = 0x%04x\n"), ptr_lang_table0);
|
||||||
puts_P(_n("\n"));
|
puts_P(_n("\n"));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
//LANG - Multi-language support
|
//LANG - Multi-language support
|
||||||
//#define LANG_MODE 0 // primary language only
|
//#define LANG_MODE 0 // primary language only
|
||||||
#define LANG_MODE 1 // sec. language support
|
#define LANG_MODE 1 // sec. language support
|
||||||
#define LANG_SIZE_RESERVED 0x3000 // reserved space for secondary language (12kb)
|
#define LANG_SIZE_RESERVED 0x2800 // reserved space for secondary language (10kb)
|
||||||
|
|
||||||
|
|
||||||
#endif //_CONFIG_H
|
#endif //_CONFIG_H
|
||||||
|
|
Loading…
Reference in a new issue