Disabled the use of language specific chars (like ÅÄÖüíñ etc) i model names. The reason is that companion can not display them and that they display differently in different languages. Existing models will retain their names, but it is no longer possible to add language specific characters.
This commit is contained in:
@@ -762,7 +762,7 @@ void editName(uint8_t x, uint8_t y, char *name, uint8_t size, uint8_t event, uin
|
||||
|
||||
if (p1valdiff || IS_ROTARY_RIGHT(event) || IS_ROTARY_LEFT(event) || event==EVT_KEY_FIRST(KEY_DOWN) || event==EVT_KEY_FIRST(KEY_UP)
|
||||
|| event==EVT_KEY_REPT(KEY_DOWN) || event==EVT_KEY_REPT(KEY_UP)) {
|
||||
v = checkIncDec(event, abs(v), 0, ZCHAR_MAX, 0);
|
||||
v = checkIncDec(event, abs(v), 0, LEN_STD_CHARS, 0);
|
||||
if (c <= 0) v = -v;
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -727,7 +727,8 @@ extern uint8_t pxxFlag[NUM_MODULES];
|
||||
#define PXX_SEND_FAILSAFE (1 << 4)
|
||||
#define PXX_SEND_RANGECHECK (1 << 5)
|
||||
|
||||
#define ZCHAR_MAX (40 + LEN_SPECIAL_CHARS)
|
||||
#define LEN_STD_CHARS 40
|
||||
#define ZCHAR_MAX (LEN_STD_CHARS + LEN_SPECIAL_CHARS)
|
||||
|
||||
extern char idx2char(int8_t idx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user