quiten build error
This commit is contained in:
parent
c0d04521d4
commit
e8eaf5fc80
|
@ -187,7 +187,8 @@ int RemoteCameraNVSocket::Capture( Image &image ) {
|
||||||
Warning( "Unable to capture image, retrying" );
|
Warning( "Unable to capture image, retrying" );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if ( Read( sd, buffer, imagesize ) < imagesize ) {
|
int bytes_read = Read(sd, buffer, imagesize);
|
||||||
|
if ( (bytes_read < 0) || ( (unsigned int)bytes_read < imagesize ) ) {
|
||||||
Warning("Unable to capture image, retrying");
|
Warning("Unable to capture image, retrying");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue