Menu

#369 Missing parenthesis in use of macro arguments

closed-fixed
2014-05-09
2013-01-21
No

Parenthesis around usbp argument is needed in macros usb_lld_connect_bus and usb_lld_disconnect_bus in order to make code like this work:

usbConnectBus(&USBD1);

Otherwise there will be a compile error.

See attached patch.

Discussion

  • Giovanni Di Sirio

    Hi, thanks for finding.

    Fixed in repository, will be fixed in 2.4.4.

     
  • Giovanni Di Sirio

    • assigned_to: nobody --> gdisirio
    • priority: 5 --> 3
    • milestone: 953057 --> 2.5.1unstable
    • status: open --> open-fixed
     
  • Giovanni Di Sirio

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.