Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase limits in the Edging Settings Menu #65

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/menus/edging_settings_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ static const ui_input_byte_t MOTOR_START_SPEED_INPUT = {

static const ui_input_numeric_t MOTOR_RAMP_TIME_INPUT = {
UnsignedInputValues("Motor Ramp Time", &Config.motor_ramp_time_s, UNIT_SECONDS, on_config_save),
.max = 120,
.max = 255,
.step = 5,
.input.help = MOTOR_RAMP_TIME_S_HELP
};

static const ui_input_numeric_t EDGE_DELAY_INPUT = {
UnsignedInputValues("Edge Delay", &Config.edge_delay, UNIT_MILLISECONDS, on_config_save),
.max = 15000,
.step = 100,
.input.help = EDGE_DELAY_HELP
};
Expand All @@ -71,7 +72,7 @@ static const ui_input_numeric_t MAX_ADDITIONAL_DELAY_INPUT = {
UnsignedInputValues(
"Max Additional Delay", &Config.max_additional_delay, UNIT_MILLISECONDS, on_config_save
),
.max = 6000,
.max = 30000,
.step = 100,
.input.help = MAX_ADDITIONAL_DELAY_HELP
};
Expand All @@ -87,7 +88,7 @@ static const ui_input_numeric_t MINIMUM_ON_TIME_INPUT = {

static const ui_input_numeric_t AROUSAL_LIMIT_INPUT = {
UnsignedInputValues("Arousal Limit", &Config.sensitivity_threshold, "", on_config_save),
.max = 1023,
.max = 2048,
.input.help = SENSITIVITY_THRESHOLD_HELP
};

Expand Down Expand Up @@ -122,4 +123,4 @@ static void on_open(const ui_menu_t* m, UI_MENU_ARG_TYPE arg) {
ui_menu_add_input(m, (ui_input_t*)&SENSOR_SENSITIVITY_INPUT);
}

DYNAMIC_MENU(EDGING_SETTINGS_MENU, "Edging Settings", on_open);
DYNAMIC_MENU(EDGING_SETTINGS_MENU, "Edging Settings", on_open);
Loading