diff --git a/hal/led/hal_usb_led.c b/hal/led/hal_usb_led.c index 68fd21b..54d02b2 100644 --- a/hal/led/hal_usb_led.c +++ b/hal/led/hal_usb_led.c @@ -28,7 +28,8 @@ rtw_led_control( { do { - (adapter)->ledpriv.LedControlHandler((adapter), (LedAction)); + if((adapter)->ledpriv.LedControlHandler) + (adapter)->ledpriv.LedControlHandler((adapter), (LedAction)); } while(0); }