From d9c16402b9059628a9c45a129a99cae86b48aa5d Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 8 Jul 2011 07:56:40 +0000 Subject: Add missing device deconfiguration-on-error statements to the host mode demos and projects. --- Projects/Webserver/USBHostMode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Projects/Webserver/USBHostMode.c') diff --git a/Projects/Webserver/USBHostMode.c b/Projects/Webserver/USBHostMode.c index 98467a1bb..1620cb5d8 100644 --- a/Projects/Webserver/USBHostMode.c +++ b/Projects/Webserver/USBHostMode.c @@ -120,6 +120,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) if (RNDIS_Host_InitializeDevice(&Ethernet_RNDIS_Interface_Host) != HOST_SENDCONTROL_Successful) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } @@ -128,6 +129,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) &PacketFilter, sizeof(PacketFilter)) != HOST_SENDCONTROL_Successful) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } @@ -135,6 +137,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) &MACAddress, sizeof(MACAddress)) != HOST_SENDCONTROL_Successful) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } -- cgit v1.2.3 fs/?id=8f790948e5f7ed62b2c56e1a6aa63dae89d5c860'>refslogtreecommitdiffstats
path: root/quantum/keycode_config.c
blob: 0dc5105d2186af7fdb8ccb32cdb830b3bf5be7b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117