xiaoxiang781216 commented on code in PR #8921:
URL: https://github.com/apache/nuttx/pull/8921#discussion_r1152244784


##########
drivers/usbhost/usbhost_hidkbd.c:
##########
@@ -353,10 +387,13 @@ static uint32_t g_devinuse;
 /* The following are used to managed the class creation operation */
 
 static mutex_t g_lock = NXMUTEX_INITIALIZER;
-static sem_t g_syncsem = SEM_INITIALIZER(0);
 static FAR struct usbhost_state_s *g_priv;
 
-/* The following tables map keyboard scan codes to printable ASIC
+/* Global caps lock status */
+
+static bool g_caps_lock = false;

Review Comment:
   why not save g_caps_lock to usbhost_state_s?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to