@@ -226,18 +226,18 @@ impl SystemAttributes {
226226 pkt. push ( i) ; // Merges the two, making them 6 bytes in the vector
227227 }
228228
229- // This sends a `ReadRange` command to the microcontroller to read 1024 bytes of memory starting at address `0x600`.
229+ // This sends a `ReadRange` command to the microcontroller to read 1024 bytes of memory starting at address `0x600`.
230230 //
231- // The microcontroller expects the command in this structure:
232- // - 1 byte: Command ID (`0x06` or `0x10` for `ReadRange`)
233- // - 1 byte: Payload length (always 6 bytes for this command)
234- // - 6 bytes payload:
235- // - 4 bytes: Start address (little-endian)
236- // - 2 bytes: Number of bytes to read (little-endian)
231+ // The microcontroller expects the command in this structure:
232+ // - 1 byte: Command ID (`0x06` or `0x10` for `ReadRange`)
233+ // - 1 byte: Payload length (always 6 bytes for this command)
234+ // - 6 bytes payload:
235+ // - 4 bytes: Start address (little-endian)
236+ // - 2 bytes: Number of bytes to read (little-endian)
237237 //
238- // In this case, we’re reading system attributes stored in memory starting at `0x600`.
238+ // In this case, we’re reading system attributes stored in memory starting at `0x600`.
239239 //
240- // The 1024-byte response will contain multiple 64-byte attribute blocks, each of which may encode a (key, value) pair.
240+ // The 1024-byte response will contain multiple 64-byte attribute blocks, each of which may encode a (key, value) pair.
241241 let ( _, buf) = issue_command (
242242 port,
243243 Command :: ReadRange , // Read memory (e.g. 0x10)
@@ -306,19 +306,19 @@ impl SystemAttributes {
306306 pkt. push ( i) ; // Append length
307307 }
308308
309- // This sends a `ReadRange` command to read 8 bytes from address `0x40E`,
310- // which stores the bootloader version string (UTF-8 encoded).
309+ // This sends a `ReadRange` command to read 8 bytes from address `0x40E`,
310+ // which stores the bootloader version string (UTF-8 encoded).
311311 //
312- // The serial protocol proceeds as follows:
313- // - 1 byte: Command ID
314- // - 1 byte: Payload length = 6
315- // - Payload =
316- // - 4 bytes: Address (0x40E, little-endian)
317- // - 2 bytes: Length (`8`, little-endian)
312+ // The serial protocol proceeds as follows:
313+ // - 1 byte: Command ID
314+ // - 1 byte: Payload length = 6
315+ // - Payload =
316+ // - 4 bytes: Address (0x40E, little-endian)
317+ // - 2 bytes: Length (`8`, little-endian)
318318 //
319- // The response is expected to be a UTF-8 encoded string, often null-terminated.
319+ // The response is expected to be a UTF-8 encoded string, often null-terminated.
320320 //
321- // We decode the returned bytes into a `String`, trimming any null characters from the end.
321+ // We decode the returned bytes into a `String`, trimming any null characters from the end.
322322 let ( _, buf) =
323323 issue_command ( port, Command :: ReadRange , pkt, true , 8 , Response :: ReadRange ) . await ?;
324324
@@ -343,20 +343,20 @@ impl SystemAttributes {
343343 pkt. push ( i) ; // Append length
344344 }
345345
346- // This sends a `ReadRange` command to read the last 100 bytes before the start of the application space,
347- // which usually contains the kernel’s footer region.
346+ // This sends a `ReadRange` command to read the last 100 bytes before the start of the application space,
347+ // which usually contains the kernel’s footer region.
348348 //
349- // The address is calculated as `(appaddr - 100)`, where `appaddr` marks the beginning of application binaries in flash.
349+ // The address is calculated as `(appaddr - 100)`, where `appaddr` marks the beginning of application binaries in flash.
350350 //
351- // The request structure is:
352- // - 1 byte: Command ID (`0x06`)
353- // - 1 byte: Payload length = 6
354- // - Payload =
355- // - 4 bytes: Address (`appaddr - 100`, little-endian)
356- // - 2 bytes: Length (`100`, little-endian)
351+ // The request structure is:
352+ // - 1 byte: Command ID (`0x06`)
353+ // - 1 byte: Payload length = 6
354+ // - Payload =
355+ // - 4 bytes: Address (`appaddr - 100`, little-endian)
356+ // - 2 bytes: Length (`100`, little-endian)
357357 //
358- // The microcontroller responds with 100 bytes from that memory region.
359- // These bytes might contain metadata or checksums relevant to the kernel image.
358+ // The microcontroller responds with 100 bytes from that memory region.
359+ // These bytes might contain metadata or checksums relevant to the kernel image.
360360 let ( _, kernel_attr_binary) = issue_command (
361361 port,
362362 Command :: ReadRange ,
0 commit comments