Skip to content

Commit

Permalink
Typos prevented pixsat value from being specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias-Wandel committed Apr 12, 2021
1 parent 5bb1db5 commit 9bc2223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h2>Imgcomp options</h2>
At 64000, it will pick ISO 320 with 0.005s exposure time. (more grainy but less motion blur)<p>


<div class="p">pixxat &ltval></div>
<div class="p">pixsat &ltval></div>
with -exmanage 1, Jpeg pixel value at which image saturates because camera
modules v1 and v2 saturate before hitting 255. Defaults to value appropriate
for camera module detected\n"
Expand Down
4 changes: 2 additions & 2 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void usage (void)// complain about bad command line
" by exposure time to be this value. Default 16000\n"
" Larger means shorter shutter speeds, smaller means lower\n"
" ISO (less grainy) but slower shutter, more motion blur\n"
" -pixxat <val> with -exmanage 1, Jpeg pixel value at which image\n"
" -pixsat <val> with -exmanage 1, Jpeg pixel value at which image\n"
" saturates because camera modules v1 and v2 saturate\n"
" before hitting 255. Defaults to value appropriate for\n"
" camera module detected\n"
Expand Down Expand Up @@ -258,7 +258,7 @@ static int parse_parameter (const char * tag, const char * value)
fprintf(stderr, "Bad exposure time values. Must be 0.0001 - 10 (seconds)\n");
return -1;
}
} else if (keymatch(tag, "pixsat", 7)) {
} else if (keymatch(tag, "pixsat", 6)) {
if (sscanf(value, "%d", &ex.SatVal) != 1) return -1;
if (ex.SatVal < 50 || ex.SatVal > 255){
fprintf(stderr, "Pixel saturation must be between in range of 50-255\n");
Expand Down

0 comments on commit 9bc2223

Please sign in to comment.