Fix LUA insertMix()

This commit is contained in:
Raphael Coeffic
2021-06-09 11:01:49 +02:00
parent d34d789dcc
commit f31e12448d
+6 -1
View File
@@ -448,10 +448,15 @@ void deleteMix(uint8_t idx)
storageDirty(EE_MODEL);
}
#if defined(LUA)
// This is necessary as the LUA API uses th old interface
// where insertMix() has only one param. The channel is
// passed through s_currCh
void insertMix(uint8_t idx)
{
insertMix(idx, s_currCh + 1);
insertMix(idx, s_currCh - 1);
}
#endif
void copyMix(uint8_t source, uint8_t dest, int8_t ch)
{