apps/examples/composite: Bug fix. Wrong handle being nullified. From David Sidrane

This commit is contained in:
Gregory Nutt 2013-11-07 17:43:14 -06:00
parent cdd15a12f6
commit bfcc6ae4d7
2 changed files with 3 additions and 1 deletions

View File

@ -728,4 +728,6 @@
driver features. From Ken Pettit (2013-11-1).
* apps/nshlib/nsh.h: Allow USB trace wihtout a USB console. From
David Sidrane (2013-11-06).
* apps/system/composite/composite_main.c: The wrong handle was getting
nullified. From David Sidrane (2013-11-7).

View File

@ -840,7 +840,7 @@ int disconn_main(int argc, char *argv[])
/* Then disconnect the device and uninitialize the USB mass storage driver */
composite_uninitialize(g_composite.cmphandle);
g_composite.mschandle = NULL;
g_composite.cmphandle = NULL;
message("disconn_main: Disconnected\n");
check_test_memory_usage("After composite_uninitialize()");