mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Fixes #2855
This commit is contained in:
parent
0baad9e393
commit
4854ffa683
1 changed files with 6 additions and 1 deletions
|
@ -336,7 +336,12 @@ void getLogicalSwitchAudioFile(char * filename, int index, unsigned int event)
|
|||
|
||||
#if defined(PCBTARANIS)
|
||||
*str++ = 'L';
|
||||
*str++ = '1'+index;
|
||||
if (index >= 10) {
|
||||
div_t qr = div(index, 10);
|
||||
*str++ = '1' + qr.quot;
|
||||
index = qr.rem;
|
||||
}
|
||||
*str++ = '1' + index;
|
||||
#else
|
||||
int len = STR_VSWITCHES[0];
|
||||
strncpy(str, &STR_VSWITCHES[1+len*(index+SWSRC_FIRST_LOGICAL_SWITCH)], len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue