Added the GPIO.setmode code to the setupGPIOChannels function