Last fix to the USB module, ready to ship.

This commit is contained in:
claudiol 2019-05-23 10:34:17 -04:00
parent 9fbcd7edaf
commit ca534d4e34
2 changed files with 3 additions and 3 deletions

View file

@ -416,8 +416,7 @@ void usb_ep1_transmit()
if(bufbytes>USB_DATASIZE) {
bufbytes=USB_DATASIZE; // DON'T SEND MORE THAN ONE PACKET AT A TIME
__usb_drvstatus|=USB_STATUS_NOWAIT; // THERE COULD BE MORE DATA, DON'T SLEEP UNTIL ALL DATA IS RETRIEVED
} else __usb_drvstatus&=~USB_STATUS_NOWAIT; // SLOW DOWN, THIS IS THE LAST PACKET
}
// CHECK IF THESE ARE THE LAST FEW BYTES OF THE FILE

View file

@ -85,8 +85,9 @@ int compileobject()
strsize=rplStrSize(rplPeekData(1));
WORDPTR newobj=rplCompile(strdata,strsize,0);
if(!newobj) { rplBlameError(CMD_FROMSTR); return 0; }
if(!newobj) { rplBlameError(0); return 0; }
rplOverwriteData(1,newobj);
return 1;
}