[Fix Yellow] pitch_screen and configfile

place int32 in the conf file array it only supports upto 32 bit anyway..

Change-Id: I16bb6f3a924bab91739f09a4151df4e6be5bec69
This commit is contained in:
William Wilgus 2025-01-17 23:09:18 -05:00
parent 13c3214d9c
commit c7dfb9f916
2 changed files with 3 additions and 2 deletions

View file

@ -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 */

View file

@ -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