Refactor hotspot shutdown time enum for improved readability and add hotspot scheduler time settings

This commit is contained in:
altsysrq
2026-01-05 21:35:21 -06:00
parent 32552e9d91
commit f1ead2101a
2 changed files with 12 additions and 7 deletions

View File

@@ -38,9 +38,7 @@ struct SettingInfo {
return {name, SettingType::ENUM, ptr, nullptr, std::move(values), {0, 0, 0}};
}
static SettingInfo Action(const char* name) {
return {name, SettingType::ACTION, nullptr, nullptr, {}, {0, 0, 0}};
}
static SettingInfo Action(const char* name) { return {name, SettingType::ACTION, nullptr, nullptr, {}, {0, 0, 0}}; }
static SettingInfo Value(const char* name, uint8_t CrossPointSettings::* ptr, const ValueRange valueRange) {
return {name, SettingType::VALUE, ptr, nullptr, {}, valueRange};