     }
 
     void set_duty_cycle_smoothing_rate(uint8_t value) {
-      duty_cycle_smoothing_rate_us_ = ((uint16_t) (value + 1)) << 2ul;
+      duty_cycle_smoothing_rate_us_ = ((uint16_t) (value + 1)) << 2;
     }
 
   private:

    uint8_t brightness_;
};

volatile uint32_t last_zerocross_isr_time;
volatile uint8_t zerocross_isr_flag;
uint16_t num_cycles;
uint8_t led2_state;
uint8_t mins_since_last_remote_command;

DimmerChannel<SSR1_PIN> ch1;
DimmerChannel<SSR2_PIN> ch2;
DimmerChannel<SSR3_PIN> ch3;

      EEPROM.update(PIN, brightness_);
    }

    void trigger_ssr_if_time() {
      if (g_now >= next_trigger_time_) {
        digitalWrite(PIN, HIGH);
        next_trigger_time_ = -1;
      }
    }

    inline uint8_t brightness() const {
       return brightness_;
    }
