acassis commented on code in PR #17010:
URL: https://github.com/apache/nuttx/pull/17010#discussion_r2410261765


##########
boards/boardctl.c:
##########
@@ -133,16 +133,14 @@ static inline int
             case BOARDIOC_USBDEV_CONNECT:    /* Connect the CDC/ACM device */
 #ifndef CONFIG_CDCACM_COMPOSITE
               {
-                DEBUGASSERT(ctrl->handle != NULL);
                 ret = cdcacm_initialize(ctrl->instance, ctrl->handle);
               }
 #endif
               break;
 
             case BOARDIOC_USBDEV_DISCONNECT: /* Disconnect the CDC/ACM device 
*/
               {
-                DEBUGASSERT(ctrl->handle != NULL && *ctrl->handle != NULL);
-                cdcacm_uninitialize(*ctrl->handle);
+                ret = cdcacm_uninitialize_instance(ctrl->instance, NULL);

Review Comment:
   Understood, thank you very much!



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to