Mercurial > louis > kiibohd-controller
diff Output/pjrcUSB/arm/usb_dev.h @ 308:ab4515606277
Fix whitespace
Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author | Rowan Decker <Smasher816@gmail.com> |
---|---|
date | Sun, 08 Mar 2015 18:40:01 -0700 |
parents | d5bf41d7f7ef |
children | f7b14e25ca5b |
line wrap: on
line diff
--- a/Output/pjrcUSB/arm/usb_dev.h Sun Mar 08 17:25:13 2015 -0700 +++ b/Output/pjrcUSB/arm/usb_dev.h Sun Mar 08 18:40:01 2015 -0700 @@ -75,10 +75,10 @@ static inline uint32_t usb_rx_byte_count(uint32_t endpoint) __attribute__((always_inline)); static inline uint32_t usb_rx_byte_count(uint32_t endpoint) { - endpoint--; - if ( endpoint >= NUM_ENDPOINTS ) + endpoint--; + if ( endpoint >= NUM_ENDPOINTS ) return 0; - return usb_rx_byte_count_data[ endpoint ]; + return usb_rx_byte_count_data[ endpoint ]; } void usb_device_reload();