From 71ee3a6c643d3dafb95acf58df9a2f52b3b94e6e Mon Sep 17 00:00:00 2001 From: Electric <76964455+313ctric@users.noreply.github.com> Date: Sun, 25 Jun 2023 22:11:55 +0100 Subject: [PATCH] Correct Standard Request Codes --- src/consts.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/consts.rs b/src/consts.rs index 80e9f3c..4aa3f5c 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -62,13 +62,14 @@ pub enum StandardRequest { GetStatus = 0, ClearFeature = 1, SetFeature = 3, + SetAddress = 5, GetDescriptor = 6, SetDescriptor = 7, GetConfiguration = 8, SetConfiguration = 9, - GetInterface = 0xA, - SetInterface = 0x11, - SynthFrame = 0x12, + GetInterface = 10, + SetInterface = 11, + SynchFrame = 12, } /// A list of defined USB descriptor types