/** @brief The length of MakerNote buffer in @e long */
/** @brief The length of MakerNote buffer in @e long */
#define MAKERNOTE_LEN 16
#define MAKERNOTE_LEN 16
#ifndef GLOBALPARS_SNGL // until kernel recompiled, will go to c313a.h
#define GLOBALPARS_SNGL(x) (globalPars[(x)-FRAMEPAR_GLOBALS]) ///< should work in drivers and applications, First 32 parameter values are not erased with initGlobalPars
@@ -934,7 +1044,7 @@ int sendImage(struct file_set *fset, int bufferImageData, int use_Exif, int sav
...
@@ -934,7 +1044,7 @@ int sendImage(struct file_set *fset, int bufferImageData, int use_Exif, int sav
elseprintf("Content-Disposition: inline; filename=\"elphelimg_%ld.%s\"\r\n",frame_params.timestamp_sec,extension);// opens in browser, asks to save on right-click
elseprintf("Content-Disposition: inline; filename=\"elphelimg_%ld.%s\"\r\n",frame_params.timestamp_sec,extension);// opens in browser, asks to save on right-click
if(bufferImageData){/* Buffer the whole file before sending over the network to make sure it will not be corrupted if the circular buffer will be overrun) */
if(bufferImageData){/* Buffer the whole file before sending over the network to make sure it will not be corrupted if the circular buffer will be overrun) */
if(sent2socket>0)break;// image/xmldata was already sent to socket, ignore
if(sent2socket>0)break;// image/xmldata was already sent to socket, ignore
if(lseek(fd_circ,LSEEK_CIRC_READY,SEEK_END)<0){// here passes OK, some not ready error is later, in sendimage (make it return different numbers)
if(lseek(fset->circbuf_fd,LSEEK_CIRC_READY,SEEK_END)<0){// here passes OK, some not ready error is later, in sendimage (make it return different numbers)
rslt=out1x1gif();
rslt=out1x1gif();
fprintf(stderr,"%s: no frame is available\n",__func__);
fprintf(stderr,"%s: no frame is available\n",__func__);
if(sent2socket>0)break;// image/xmldata was already sent to socket, ignore
if(sent2socket>0)break;// image/xmldata was already sent to socket, ignore
if(lseek(fd_circ,LSEEK_CIRC_READY,SEEK_END)<0)// here passes OK, some not ready error is later, in sendimage (make it return different numbers)
if(lseek(fset->circbuf_fd,LSEEK_CIRC_READY,SEEK_END)<0)// here passes OK, some not ready error is later, in sendimage (make it return different numbers)