/* If the adapter has only 2 LEDs, the green LED will blink with a rate depending on the number of channels opened.  */
static void led_blink(struct st5481_adapter *adapter)
/* If the adapter has only 2 LEDs, the green LED will blink with a rate depending on the number of channels opened.  */
static void led_blink(struct st5481_adapter *adapter)
{
	u_char leds = adapter->leds;
	if (++adapter->led_counter % 50) {
		return;
	}
	if (adapter->led_counter % 100) {
		leds |= GREEN_LED;
	} else {
		leds &= ~GREEN_LED;
	}
	st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, leds, NULL, NULL);
}