Fixed type of return values
This commit is contained in:
parent
5f339559d7
commit
ebb547c53f
@ -135,7 +135,7 @@ bool read_header(EthernetClient cli, source_t* src) {
|
|||||||
bool complete = false;
|
bool complete = false;
|
||||||
|
|
||||||
while (offset < 6) {
|
while (offset < 6) {
|
||||||
byte value = cli.read();
|
int value = cli.read();
|
||||||
if (value == -1) {
|
if (value == -1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -182,7 +182,7 @@ bool read_pixels(EthernetClient cli, source_t* src, image_t* img) {
|
|||||||
img->height = src->height;
|
img->height = src->height;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
byte value = cli.read();
|
int value = cli.read();
|
||||||
if (value == -1) {
|
if (value == -1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -229,9 +229,9 @@ void loop() {
|
|||||||
|
|
||||||
seen_client = true;
|
seen_client = true;
|
||||||
} else {
|
} else {
|
||||||
if (seen_client == false) {
|
//if (seen_client == false) {
|
||||||
default_image(&image);
|
default_image(&image);
|
||||||
send_image(&image);
|
send_image(&image);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user