cad improvements

This commit is contained in:
liquidraver committed 2026-09-01 22:05:29 +02:00
1 parent efa5240b69
commit ba33cebf6a
27 files changed
+1559 -292

No files matched your search

+6
View File
@@ -728,6 +728,12 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
* _prefs->cad_offset, and _cad_offset inside the radio, which
* applyCadPrefs() reloads through setCadParams(). */
_prefs->cad_offset = cliDefaults()->cad_offset;
/* Clear the recorded base too. applyCadPrefs() below re-stamps it
* from the radio, so a reset always leaves offset and base
* describing the same configuration -- leaving a stale base here
* would make the NEXT base-table change re-anchor a freshly reset
* offset away from zero. */
_prefs->cad_base = 0;
_callbacks->resetCadStats();
_callbacks->applyCadPrefs();
savePrefs();