diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index de0389a57..e8095d3e4 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -935,8 +935,10 @@ _get_Generic8Table(CONFIG_GET_ARGS, struct deviceproptableu8* tbl, int tblsize) int isset = FALSE, isset2 = FALSE; if (dpd->FormFlag & PTP_DPFF_Enumeration) { - if ((dpd->DataType != PTP_DTC_UINT8) && (dpd->DataType != PTP_DTC_INT8)) - return (GP_ERROR); + if ((dpd->DataType != PTP_DTC_UINT8) && (dpd->DataType != PTP_DTC_INT8)) { + GP_LOG_D ("no int8 prop in 8bit table code"); + return GP_ERROR; + } gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); gp_widget_set_name (*widget, menu->name); for (i = 0; iFORM.Enum.NumberOfValues; i++) { @@ -972,8 +974,10 @@ _get_Generic8Table(CONFIG_GET_ARGS, struct deviceproptableu8* tbl, int tblsize) return (GP_OK); } if (dpd->FormFlag & PTP_DPFF_Range) { - if (dpd->DataType != PTP_DTC_UINT8) - return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT8) { + GP_LOG_D ("no int8 prop in 8bit table code"); + return GP_ERROR; + } gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); gp_widget_set_name (*widget, menu->name); for ( i = dpd->FORM.Range.MinimumValue.u8;