mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
Horus: add receiver number check (#5841)
* add receiver number check for Horus * find the first free model ID on LONG ENTER * use the next free model ID for new models * improve free model ID support for std LCD as well * fixed “duplicate model” * fixed ModelsList::isModelIdUnique()
This commit is contained in:
parent
ea898e5122
commit
7379f6064e
16 changed files with 918 additions and 325 deletions
|
@ -463,8 +463,10 @@ char * strAppendFilename(char * dest, const char * filename, const int size)
|
|||
memset(dest, 0, size);
|
||||
for (int i=0; i<size; i++) {
|
||||
char c = *filename++;
|
||||
if (c == '\0' || c == '.')
|
||||
if (c == '\0' || c == '.') {
|
||||
*dest = 0;
|
||||
break;
|
||||
}
|
||||
*dest++ = c;
|
||||
}
|
||||
return dest;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue