File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
hardware/arduino/cores/arduino Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,8 @@ bool WEAK CDC_Setup(Setup& setup)
108
108
// like servicing endpoints before the sketch ends
109
109
if (1200 == _usbLineInfo.dwDTERate ) {
110
110
// We check DTR state to determine if host port is open (bit 0 of lineState).
111
- // Serial1.print(">"); Serial1.println(_usbLineInfo.lineState, HEX);
112
111
if ((_usbLineInfo.lineState & 0x01 ) == 0 ) {
113
- *(uint16_t *)0x0A00 = 0x7777 ;
112
+ *(uint16_t *)0x0800 = 0x7777 ;
114
113
wdt_enable (WDTO_120MS);
115
114
} else {
116
115
// Most OSs do some intermediate steps when configuring ports and DTR can
@@ -120,7 +119,7 @@ bool WEAK CDC_Setup(Setup& setup)
120
119
121
120
wdt_disable ();
122
121
wdt_reset ();
123
- *(uint16_t *)0x0A00 = 0x0 ;
122
+ *(uint16_t *)0x0800 = 0x0 ;
124
123
}
125
124
}
126
125
return true ;
You can’t perform that action at this time.
0 commit comments