summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-08-14 22:23:40 +1000
committerLorenz Meier <lm@inf.ethz.ch>2013-08-14 14:32:28 +0200
commit5e249edfd79b2ff56a7e1748c237ef970121e40e (patch)
treede55bf157c4ad671c9fcae810cd4aab6ea061ef2 /nuttx
parent8f88e7fd8eb2249ba1159e71d0136d2d86cdc2fd (diff)
downloadpx4-nuttx-5e249edfd79b2ff56a7e1748c237ef970121e40e.tar.gz
px4-nuttx-5e249edfd79b2ff56a7e1748c237ef970121e40e.tar.bz2
px4-nuttx-5e249edfd79b2ff56a7e1748c237ef970121e40e.zip
cdcacm: fixed SELFPOWERED and REMOTEWAKEUP bits in USB attributes
the ifndef checks should be ifdef. This was causing the wrong attributes on USB, which could limit available power on some host systems
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/include/nuttx/usb/cdcacm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/include/nuttx/usb/cdcacm.h b/nuttx/include/nuttx/usb/cdcacm.h
index 4e331b569..7c9672432 100644
--- a/nuttx/include/nuttx/usb/cdcacm.h
+++ b/nuttx/include/nuttx/usb/cdcacm.h
@@ -215,13 +215,13 @@
/* USB Controller */
-#ifndef CONFIG_USBDEV_SELFPOWERED
+#ifdef CONFIG_USBDEV_SELFPOWERED
# define SELFPOWERED USB_CONFIG_ATTR_SELFPOWER
#else
# define SELFPOWERED (0)
#endif
-#ifndef CONFIG_USBDEV_REMOTEWAKEUP
+#ifdef CONFIG_USBDEV_REMOTEWAKEUP
# define REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP
#else
# define REMOTEWAKEUP (0)