This commit is contained in:
Bertrand Songis
2015-09-11 16:45:00 +02:00
parent 0baad9e393
commit 4854ffa683
+5
View File
@@ -336,6 +336,11 @@ void getLogicalSwitchAudioFile(char * filename, int index, unsigned int event)
#if defined(PCBTARANIS) #if defined(PCBTARANIS)
*str++ = 'L'; *str++ = 'L';
if (index >= 10) {
div_t qr = div(index, 10);
*str++ = '1' + qr.quot;
index = qr.rem;
}
*str++ = '1' + index; *str++ = '1' + index;
#else #else
int len = STR_VSWITCHES[0]; int len = STR_VSWITCHES[0];