+ - 1 - 2*num;
+}
+
+static inline pattern_t *pattern_select(unsigned char n)
+{
+ if (n < N_PWMLEDS && !pwmled_enabled(n))
+ return off_pattern; // Don't mess with non-enabled LEDs
+
+ if (n == 2) {
+ if (test_running) {
+ log_byte(0xF7);
+ log_flush();
+ return off_pattern;
+ } else {
+ test_running = 1;
+ log_byte(0xF6);
+ return mode1_pattern;
+ }
+ }
+ return number_pattern(1+ambient_zone);