From e6e4f1388d7317b7d28dfd655a0780181cf77fd0 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 15 Jul 2015 12:07:45 +0000 Subject: [PATCH] usb_f103: fix typo in bad merge for SOF callback. too many pulls :| --- lib/usb/usb_f103.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/usb/usb_f103.c b/lib/usb/usb_f103.c index 09d1bfca..201cb132 100644 --- a/lib/usb/usb_f103.c +++ b/lib/usb/usb_f103.c @@ -344,7 +344,7 @@ static void stm32f103_poll(usbd_device *dev) } } - if (usbd_dev->user_callback_sof) { + if (dev->user_callback_sof) { BBIO_PERIPH(USB_CNTR_REG, USB_CNTR_SOFM) = 1; } else { BBIO_PERIPH(USB_CNTR_REG, USB_CNTR_SOFM) = 0;