fix some compiler warnings around USBH_DEBUG_ENABLE conditions

This commit is contained in:
Austin Morton 2017-07-18 01:02:34 -04:00
parent 36ccd9f43a
commit ca79ff2e87
1 changed files with 2 additions and 2 deletions

View File

@ -987,7 +987,7 @@ static inline void _hcint_int(USBHDriver *host) {
haint = host->otg->HAINT;
haint &= host->otg->HAINTMSK;
#if USBH_LLD_DEBUG_ENABLE_ERRORS
#if USBH_DEBUG_ENABLE && USBH_LLD_DEBUG_ENABLE_ERRORS
if (!haint) {
uint32_t a, b;
a = host->otg->HAINT;
@ -1327,7 +1327,7 @@ static void usb_lld_serve_interrupt(USBHDriver *host) {
gintsts &= otg->GINTMSK;
if (!gintsts) {
#if USBH_DEBUG_ENABLE_WARNINGS
#if USBH_DEBUG_ENABLE && USBH_DEBUG_ENABLE_WARNINGS
uint32_t a, b;
a = otg->GINTSTS;
b = otg->GINTMSK;