1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2025-04-21 12:27:27 +03:00

working on mass storage

This commit is contained in:
Bas Wijnen
2010-09-01 23:27:14 +02:00
parent aef83317c9
commit 61d76aaefb
15 changed files with 942 additions and 189 deletions

View File

@@ -155,7 +155,7 @@ void data::poll ():
if !--lock:
dir.clear ()
continue
case Iris::String::GET_BLOCK:
case Iris::Block::GET_BLOCK:
if buffer[1] >= dir.size ():
std::cerr << "reading invalid file" << std::endl
usb_release_interface (handle, 0)
@@ -177,7 +177,7 @@ void data::poll ():
handle = NULL
return
continue
case Iris::String::GET_SIZE:
case Iris::Block::GET_SIZE:
if buffer[1] >= dir.size ():
std::cerr << "reading invalid file size " << buffer[1] << " >= " << dir.size () << std::endl
usb_release_interface (handle, 0)