add \r to \n when output to usbgecko

This commit is contained in:
bushing 2009-10-24 04:02:45 -07:00
parent fde179edc5
commit 45990d9cfc

View File

@ -143,6 +143,8 @@ static int gecko_sendbuffer(const void *buffer, u32 size)
while(left>0) {
if(!_gecko_sendbyte(*ptr))
break;
if(*ptr == '\n' && !_gecko_sendbyte('\r'))
break;
ptr++;
left--;
}
@ -181,6 +183,8 @@ static int gecko_sendbuffer_safe(const void *buffer, u32 size)
if(_gecko_checksend()) {
if(!_gecko_sendbyte(*ptr))
break;
if(*ptr == '\n' && !_gecko_sendbyte('\r'))
break;
ptr++;
left--;
}