make httplib load fast.
@ -37,6 +37,7 @@ RANLIB = $(CROSS_COMPILE)ranlib
SIZE = $(CROSS_COMPILE)size
OPT?= -O2
IDENT:=${IDENT} $(shell echo ${IDENT}|sed -n 's/.*-DX\([0-9]\+\)x\([0-9]\+\).*/ -DFB_XSIZE=\1 -DFB_YSIZE=\2 /p')
all: pmon
@ -278,6 +278,7 @@ httpread (int fd,void* buf,int nread)
}
if (http->foffs >= http->end) {
http->start = http->end;
if(http->foffs>=buf_size)break;
n = read(http->sock, http->buf, HPSIZE);
if(n<=0)break;
http->end = http->start + n;
@ -170,8 +170,8 @@ int smi712_init(char * fbaddress,char * ioaddress)
hw.height = 600;
#endif
#if 1
hw.width = 640;
hw.height = 480;
hw.width = FB_XSIZE;
hw.height = FB_YSIZE;
hw.bits_per_pixel = 16;
hw.hz = 60;