quiten build error
This commit is contained in:
parent
c0d04521d4
commit
e8eaf5fc80
|
@ -187,13 +187,14 @@ 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);
|
||||||
Warning( "Unable to capture image, retrying" );
|
if ( (bytes_read < 0) || ( (unsigned int)bytes_read < imagesize ) ) {
|
||||||
|
Warning("Unable to capture image, retrying");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
uint32_t end;
|
uint32_t end;
|
||||||
if ( Read(sd, (char *) &end , sizeof(end)) < 0 ) {
|
if ( Read(sd, (char *) &end , sizeof(end)) < 0 ) {
|
||||||
Warning( "Unable to capture image, retrying" );
|
Warning("Unable to capture image, retrying");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if ( end != 0xFFFFFFFF) {
|
if ( end != 0xFFFFFFFF) {
|
||||||
|
@ -201,7 +202,7 @@ int RemoteCameraNVSocket::Capture( Image &image ) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
image.Assign( width, height, colours, subpixelorder, buffer, imagesize );
|
image.Assign(width, height, colours, subpixelorder, buffer, imagesize);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue