// update - updates led according to timed_updated. Should be called // at 50Hz void RGBLed::update() { // return immediately if not enabled if (!_healthy) { return; } update_colours(); set_rgb(_red_des, _green_des, _blue_des); }
// update - updates led according to timed_updated. Should be called // at 50Hz void RGBLed::update() { // return immediately if not enabled if (!_healthy) { return; } if (!pNotify->_rgb_led_override) { update_colours(); set_rgb(_red_des, _green_des, _blue_des); } else { update_override(); } }