refactor: remove legacy battery reporting toggle path

Этот коммит содержится в:
Jared Dohrman
2026-04-22 09:57:51 +10:00
родитель 274cb8b8c2
Коммит bbab7c95d4
10 изменённых файлов: 34 добавлений и 43 удалений
+1 -3
Просмотреть файл
@@ -652,8 +652,7 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
_prefs.gps_enabled = 0;
_prefs.gps_interval = 0;
_prefs.advert_loc_policy = ADVERT_LOC_PREFS;
_prefs.battery_reporting_enabled = 1;
_prefs.reserved_290 = 0;
next_post_idx = 0;
next_client_idx = 0;
next_push = 0;
@@ -699,7 +698,6 @@ void MyMesh::begin(FILESYSTEM *fs) {
updateFloodAdvertTimer();
board.setAdcMultiplier(_prefs.adc_multiplier);
board.setBatteryReporting(_prefs.battery_reporting_enabled);
#if ENV_INCLUDE_GPS == 1
applyGpsPrefs();