diff --git a/apps/plugins/lib/configfile.h b/apps/plugins/lib/configfile.h index 69869142e2..4fdcf802d5 100644 --- a/apps/plugins/lib/configfile.h +++ b/apps/plugins/lib/configfile.h @@ -37,6 +37,7 @@ struct configdata int *int_p; bool *bool_p; char *string; + int32_t *int32_p; }; /* Pointer to value, a union of the possible types */ char *name; /* Pointer to the name of the item */ char **values; /* List of strings for enums, NULL if not enum */ diff --git a/apps/plugins/pitch_screen.c b/apps/plugins/pitch_screen.c index 8d4802da28..5e5d70fc54 100644 --- a/apps/plugins/pitch_screen.c +++ b/apps/plugins/pitch_screen.c @@ -56,8 +56,8 @@ static struct pvars pitch_vars; static struct configdata pitchcfg[] = { - {TYPE_INT, PITCH_MIN, PITCH_MAX, { .int_p = &pitch_vars.pitch }, "pitch", NULL}, - {TYPE_INT, STRETCH_MIN, STRETCH_MAX, { .int_p = &pitch_vars.stretch }, "stretch", NULL}, + {TYPE_INT, PITCH_MIN, PITCH_MAX, { .int32_p = &pitch_vars.pitch }, "pitch", NULL}, + {TYPE_INT, STRETCH_MIN, STRETCH_MAX, { .int32_p = &pitch_vars.stretch }, "stretch", NULL}, }; enum