projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mass storage emulation now works well enough to emulate a readable, mountable disk.
[goodfet]
/
firmware
/
apps
/
radios
/
ccspi.c
diff --git
a/firmware/apps/radios/ccspi.c
b/firmware/apps/radios/ccspi.c
index
7c72ddd
..
9c6b09c
100644
(file)
--- a/
firmware/apps/radios/ccspi.c
+++ b/
firmware/apps/radios/ccspi.c
@@
-249,9
+249,9
@@
void ccspi_handle_fn( uint8_t const app,
SETSS;
*/
SETSS;
*/
- //Only should transmit
length of one more than the reported
- // length of the frame, which holds the length byte:
- txdata(app,verb,i
&0x7F
);
+ //Only should transmit
a packet if the length is legal.
+ if(cmddata[0]&0x80) i=0;
+ txdata(app,verb,i);
}else{
//No packet.
txdata(app,verb,0);
}else{
//No packet.
txdata(app,verb,0);