Have CAD be a separate toggle (set cad on/off)

This commit is contained in:
Wessel Nieboer
2026-06-14 15:20:58 +02:00
parent 099ef67348
commit 7c8e092457
15 changed files with 68 additions and 14 deletions
+2 -1
View File
@@ -892,7 +892,8 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
_prefs.flood_max = 64;
_prefs.flood_max_unscoped = 64;
_prefs.flood_max_advert = 8;
_prefs.interference_threshold = 1; // non-zero enables hardware CAD before TX
_prefs.interference_threshold = 0; // disabled
_prefs.cad_enabled = 0; // hardware CAD before TX (off by default; 'set cad on')
// bridge defaults
_prefs.bridge_enabled = 1; // enabled