refactor: Clean up unused variables and comments in AppProvider and DeviceConfigScreen

This commit is contained in:
Janez T
2025-10-22 12:02:44 +02:00
parent 53ed690f51
commit 0092bad3bf
5 changed files with 9 additions and 70 deletions

View File

@@ -281,11 +281,10 @@ class MeshCoreBleService {
// STEP 2: Send app start to initialize the app session
// This is the first command after connection per protocol documentation
debugPrint('🚀 [Service] Sending app start (CMD_APP_START)...');
final selfInfo = await _commandSender
.writeDataAndWaitForResponse<Map<String, dynamic>>(
FrameBuilder.buildAppStart(),
MeshCoreConstants.respSelfInfo,
);
await _commandSender.writeDataAndWaitForResponse<Map<String, dynamic>>(
FrameBuilder.buildAppStart(),
MeshCoreConstants.respSelfInfo,
);
debugPrint('✅ [Service] Self info received: node initialized');
// STEP 3: Set device clock AFTER initialization

View File

@@ -229,9 +229,9 @@ class FrameParser {
final advLon = ByteData.sublistView(Uint8List.fromList(advLonBytes))
.getInt32(0, Endian.little);
final multiAcks = reader.readByte();
final advertLocPolicy = reader.readByte();
final telemetryModes = reader.readByte();
reader.readByte(); // multiAcks (reserved for future use)
reader.readByte(); // advertLocPolicy (reserved for future use)
reader.readByte(); // telemetryModes (reserved for future use)
final manualAddContacts = reader.readByte();
final radioFreqBytes = reader.readBytes(4);