From 1105ad72950a6504350fb89a775d1d1c4d6b3807 Mon Sep 17 00:00:00 2001 From: fariouche Date: Sat, 4 Aug 2018 12:56:55 +0200 Subject: [PATCH] Fixed crash because of stupid bug in led function with 8814 --- hal/led/hal_usb_led.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }