- response=[0x12,0,0,0, 0,0,0,0x1C];
- self.fifo_ep3in_tx(response);
- elif verb==0x5A: #Mode Sense (10)
- # I should probably send ten bytes here.
- print "Mode Sense (10) requesting %i byte Page Code %02x" % (
- dtlen,ord(cb[2])&0x3F);
- #This is completely wrong.
- response=[0x12,0x00,0,0, 0,0,0,0x1C]
+ response=[0x07,0,0,0, 0,0,0,0x1C];
+ # response=[0x37,0x00,0x00,0x08,0x00,0x00,0x00,0x00, 0x00,0x00,0x02,0x00,0x01,0x0a,0x80,0x00,
+ # 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x08,0x12,0x04,0x00,0x00,0x00,0x00,0x00,
+ # 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x0a,0x0a,0x02,0x00,
+ # 0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x1e];
+ if page!=0x3f:
+ print "Unknown page, returning empty page.";
+ response=[0x07,0,0,0, 0,0,0,0];