File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,8 @@ size_t Serial_::write(const uint8_t *buffer, size_t size)
232
232
// open connection isn't broken cleanly (cable is yanked out, host dieslineState
233
233
// or locks up, or host virtual serial port hangs)
234
234
uint32_t r = 0 ;
235
- if (_usbLineInfo.lineState == 0 && _DTR) // Problem with Windows(R)
235
+
236
+ if (_usbLineInfo.lineState == 0 && _DTR) // Problem with Windows(R)
236
237
{
237
238
setWriteError ();
238
239
return 0 ;
@@ -271,12 +272,12 @@ uint8_t Serial_::numbits()
271
272
return _usbLineInfo.bDataBits ;
272
273
}
273
274
274
- bool Serial_::dtr ()
275
+ bool Serial_::dtr ()
275
276
{
276
277
return _usbLineInfo.lineState & 0x1 ;
277
278
}
278
279
279
- bool Serial_::rts ()
280
+ bool Serial_::rts ()
280
281
{
281
282
return _usbLineInfo.lineState & 0x2 ;
282
283
}
@@ -296,11 +297,10 @@ Serial_::operator bool()
296
297
297
298
bool result = false ;
298
299
299
-
300
300
if (!_DTR)
301
301
{
302
302
return true ;
303
- }
303
+ }
304
304
305
305
if (_usbLineInfo.lineState > 0 )
306
306
{
Original file line number Diff line number Diff line change @@ -195,10 +195,10 @@ extern Serial_ Serial;
195
195
// ================================================================================
196
196
// MSC 'Driver'
197
197
198
- uint32_t MSC_GetInterface (uint8_t * interfaceNum);
199
- uint32_t MSC_GetDescriptor (uint32_t i);
200
- bool MSC_Setup (USBSetup& setup);
201
- bool MSC_Data (uint8_t rx,uint8_t tx);
198
+ uint32_t MSC_GetInterface (uint8_t * interfaceNum);
199
+ uint32_t MSC_GetDescriptor (uint32_t i);
200
+ bool MSC_Setup (USBSetup& setup);
201
+ bool MSC_Data (uint8_t rx,uint8_t tx);
202
202
203
203
// ================================================================================
204
204
// ================================================================================
@@ -207,8 +207,8 @@ bool MSC_Data(uint8_t rx,uint8_t tx);
207
207
int CDC_GetInterface (uint8_t * interfaceNum);
208
208
const void * _CDC_GetInterface (void );
209
209
uint32_t _CDC_GetInterfaceLength (void );
210
- uint32_t CDC_GetOtherInterface (uint8_t * interfaceNum);
211
- uint32_t CDC_GetDescriptor (uint32_t i);
212
- bool CDC_Setup (USBSetup& setup);
210
+ uint32_t CDC_GetOtherInterface (uint8_t * interfaceNum);
211
+ uint32_t CDC_GetDescriptor (uint32_t i);
212
+ bool CDC_Setup (USBSetup& setup);
213
213
214
214
#endif // __cplusplus
You can’t perform that action at this time.
0 commit comments