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)
232232 // open connection isn't broken cleanly (cable is yanked out, host dieslineState
233233 // or locks up, or host virtual serial port hangs)
234234 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)
236237 {
237238 setWriteError ();
238239 return 0 ;
@@ -271,12 +272,12 @@ uint8_t Serial_::numbits()
271272 return _usbLineInfo.bDataBits ;
272273}
273274
274- bool Serial_::dtr ()
275+ bool Serial_::dtr ()
275276{
276277 return _usbLineInfo.lineState & 0x1 ;
277278}
278279
279- bool Serial_::rts ()
280+ bool Serial_::rts ()
280281{
281282 return _usbLineInfo.lineState & 0x2 ;
282283}
@@ -296,11 +297,10 @@ Serial_::operator bool()
296297
297298 bool result = false ;
298299
299-
300300 if (!_DTR)
301301 {
302302 return true ;
303- }
303+ }
304304
305305 if (_usbLineInfo.lineState > 0 )
306306 {
Original file line number Diff line number Diff line change @@ -195,10 +195,10 @@ extern Serial_ Serial;
195195// ================================================================================
196196// MSC 'Driver'
197197
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);
202202
203203// ================================================================================
204204// ================================================================================
@@ -207,8 +207,8 @@ bool MSC_Data(uint8_t rx,uint8_t tx);
207207int CDC_GetInterface (uint8_t * interfaceNum);
208208const void * _CDC_GetInterface (void );
209209uint32_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);
213213
214214#endif // __cplusplus
You can’t perform that action at this time.
0 commit comments