Fix panasonic camlib compilation warnings.
* l859/l859.c: This seems to be a bug in the code due to missing 'break' statement. It is also possible that image preview functionality did not really work. In any case this fix should not make things worse. * dc1580.c: Fixes signed-unsigned comparison issue.
This commit is contained in:
committed by
Marcus Meissner
parent
e71a700c27
commit
9bd47e22af
@@ -76,7 +76,7 @@ static uint8_t dsc2_checksum(char *buffer, int size) {
|
||||
|
||||
static int dsc2_sendcmd(Camera *camera, uint8_t cmd, long int data, uint8_t sequence) {
|
||||
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
DEBUG_PRINT_MEDIUM(("Sending command: 0x%02x, data: %i, sequence: %i.", cmd, data, sequence));
|
||||
|
||||
|
||||
@@ -494,6 +494,7 @@ static int get_file_func (CameraFilesystem *fs, const char *folder,
|
||||
break;
|
||||
case GP_FILE_TYPE_PREVIEW:
|
||||
size = l859_selectimage_preview(camera, index);
|
||||
break;
|
||||
default:
|
||||
return (GP_ERROR_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user