Add a missing event descriptor
The Aladin Tec (and Tec 2G) sample descriptor table supports up to two event bytes, but there is only a single event descriptor. This missing descriptor causes a fatal error during parsing. Add a dummy descriptor to avoid the error.
This commit is contained in:
parent
cecf8c5d6f
commit
ab37d94ee9
@ -365,6 +365,11 @@ uwatec_smart_event_info_t uwatec_smart_aladintec_events_0[] = {
|
||||
{EV_UNKNOWN, 0x08, 3},
|
||||
};
|
||||
|
||||
static const
|
||||
uwatec_smart_event_info_t uwatec_smart_aladintec_events_1[] = {
|
||||
{EV_UNKNOWN, 0xFF, 0},
|
||||
};
|
||||
|
||||
static const
|
||||
uwatec_smart_event_info_t uwatec_smart_aladintec2g_events_0[] = {
|
||||
{EV_WARNING, 0x01, 0},
|
||||
@ -634,7 +639,9 @@ uwatec_smart_parser_create (dc_parser_t **out, dc_context_t *context, unsigned i
|
||||
parser->samples = uwatec_smart_aladin_samples;
|
||||
parser->nsamples = C_ARRAY_SIZE (uwatec_smart_aladin_samples);
|
||||
parser->events[0] = uwatec_smart_aladintec_events_0;
|
||||
parser->events[1] = uwatec_smart_aladintec_events_1;
|
||||
parser->nevents[0] = C_ARRAY_SIZE (uwatec_smart_aladintec_events_0);
|
||||
parser->nevents[1] = C_ARRAY_SIZE (uwatec_smart_aladintec_events_1);
|
||||
break;
|
||||
case ALADINTEC2G:
|
||||
parser->headersize = 116;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user