Add Presets section (name/frequency/voltage) to Settings page#1816
Open
xr1140 wants to merge 1 commit into
Open
Add Presets section (name/frequency/voltage) to Settings page#1816xr1140 wants to merge 1 commit into
xr1140 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Presets section to the AxeOS Settings page that lets users save named combinations of frequency and core voltage and apply them with one click. Fully client-side — no firmware/C changes.
Tuning a Bitaxe often means switching between a few known-good frequency/voltage combos (e.g. a quiet profile vs. a performance profile). Today that requires re-typing/selecting both values every time. Presets make switching a single click.
What's included
PATCH /api/systemwith{ frequency, coreVoltage }. Since both are non-restart fields, it takes effect without a reboot.Design notes
LocalStorageService(keyASIC_PRESETS), mirroring how the Swarm feature already persists user data client-side. This keeps the feature entirely in AxeOS with zero device-side/NVS changes.EditComponent(the Settings form), reusing its reactive form and the existingSystemApiService.updateSystem()call. No new PrimeNG modules or dependencies were added.Files changed
main/http_server/axe-os/src/app/components/edit/edit.component.tsmain/http_server/axe-os/src/app/components/edit/edit.component.htmlTesting
npm run buildcompiles cleanly (AOT type-checks component + template).PATCH /api/system, and Export → clear → Import round-trip.www.binand flashed via Settings → Update on a real device.Screenshots
Notes
PATCH /api/systemendpoint is reused as-is.