Fix redefinition warning when USB_DEVICE_ONLY is set on an AVR which does not support USB host mode.
This commit is contained in:
parent
fef185a409
commit
5ca1d7bf8f
3 changed files with 5 additions and 2 deletions
|
@ -50,7 +50,9 @@
|
|||
#error USB_HOST_ONLY is not available for the currently selected USB AVR model.
|
||||
#endif
|
||||
|
||||
#define USB_DEVICE_ONLY
|
||||
#if !defined(USB_DEVICE_ONLY)
|
||||
#define USB_DEVICE_ONLY
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (!defined(USB_DEVICE_ONLY) && !defined(USB_HOST_ONLY))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue