diff options
Diffstat (limited to 'embassy-usb/src/control.rs')
| -rw-r--r-- | embassy-usb/src/control.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb/src/control.rs b/embassy-usb/src/control.rs index ceccfd85b..79f736309 100644 --- a/embassy-usb/src/control.rs +++ b/embassy-usb/src/control.rs | |||
| @@ -120,7 +120,7 @@ impl Request { | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | /// Gets the descriptor type and index from the value field of a GET_DESCRIPTOR request. | 122 | /// Gets the descriptor type and index from the value field of a GET_DESCRIPTOR request. |
| 123 | pub fn descriptor_type_index(&self) -> (u8, u8) { | 123 | pub const fn descriptor_type_index(&self) -> (u8, u8) { |
| 124 | ((self.value >> 8) as u8, self.value as u8) | 124 | ((self.value >> 8) as u8, self.value as u8) |
| 125 | } | 125 | } |
| 126 | } | 126 | } |
