1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00
This commit is contained in:
bsongis 2014-06-23 12:15:17 +02:00
parent 1febac7bf9
commit 2c6f28e422
4 changed files with 45 additions and 34 deletions

View file

@ -2749,8 +2749,16 @@ void deleteExpoMix(uint8_t expo, uint8_t idx)
pauseMixerCalculations();
if (expo) {
ExpoData *expo = expoAddress(idx);
#if defined(PCBTARANIS)
int input = expo->chn;
#endif
memmove(expo, expo+1, (MAX_EXPOS-(idx+1))*sizeof(ExpoData));
memclear(&g_model.expoData[MAX_EXPOS-1], sizeof(ExpoData));
#if defined(PCBTARANIS)
if (!isInputAvailable(input)) {
memclear(&g_model.inputNames[input], sizeof(LEN_INPUT_NAME));
}
#endif
}
else {
MixData *mix = mixAddress(idx);