From 09c861c97572de2302e294ae908225e89237c7ad Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Mon, 13 Jul 2015 16:18:03 +0200 Subject: gp_xbox: Do not allow unitialized driver to be loaded Signed-off-by: Amir Hammad --- src/usbh_driver_gp_xbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/usbh_driver_gp_xbox.c b/src/usbh_driver_gp_xbox.c index f1525c4..1b1d895 100644 --- a/src/usbh_driver_gp_xbox.c +++ b/src/usbh_driver_gp_xbox.c @@ -77,8 +77,8 @@ void gp_xbox_driver_init(const gp_xbox_config_t *config) static void *init(void *usbh_dev) { if (!initialized) { - LOG_PRINTF("driver not initialized"); - return false; + LOG_PRINTF("\n%s/%d : driver not initialized\r\n", __FILE__, __LINE__); + return 0; } uint32_t i; -- cgit