commit c0d8c8d6057aaf54f72a72c632fd0b94f33710e4 parent b967ab547d4f99098f3e62866b1bd3c76dc722cf Author: Olav Sørensen <olav.sorensen@live.no> Date: Wed, 14 Oct 2020 11:52:13 +0200 Scope fix Kill scope if instrument is set to an empty instrument in the pattern data Diffstat:
M | src/ft2_scopes.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/ft2_scopes.c b/src/ft2_scopes.c @@ -570,6 +570,13 @@ void handleScopesFromChQueue(chSyncData_t *chSyncData, uint8_t *scopeUpdateStatu lastChInstr[i].instrNr = ch->instrNr; lastChInstr[i].sampleNr = ch->sampleNr; } + else + { + // empty instrument, shut down scope + scope[i].active = false; + lastChInstr[i].instrNr = 255; + lastChInstr[i].sampleNr = 255; + } } } }