mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:37:33 +00:00
f76533f209aaf5f8269321e33af34b19ad4740fc
TRadioController.SetAGCMode now owns the index->WDSP mapping, applies to the DSP engine, and updates the band cache, then fires OnStateChanged. OnControllerState restyles the AGC button group. BtnAGCModeClick, OnVfoOverlayAGCChange, and SyncWebAGC all call the command. Fixes a latent web bug: SyncWebAGC used TWDSPAGCMode(index) directly, mapping the UI index (0=FAST..4=OFF) onto the wrong enum (0=OFF...), so web AGC selections set the wrong DSP mode. The button/overlay path used the correct AGCModes[] array; unifying on the command applies that to web too. Buttons/overlay behavior unchanged. Builds clean (cocoa). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Languages
Pascal
96.4%
Python
2.9%
Shell
0.6%