There's nothing fundamentally wrong with what you've done there, except for assigning channelSelect as 1 or 2 and then switching based on 0 and 1.
There's nothing fundamentally wrong with what you've done there, except for assigning channelSelect as 1 or 2 and then switching based on 0 and 1.