Skip to content

Commit 21b2956

Browse files
committed
chore: ....
Signed-off-by: Mohamed Daoudo <mohamed.daoudo@stud.fils.upb.ro>
1 parent 4f9d59a commit 21b2956

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tockloader-lib/src/attributes/app_attributes.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl AppAttributes {
6969
let mut apps_counter = 0;
7070
let mut apps_details: Vec<AppAttributes> = vec![];
7171

72-
// All aplications are stored sequentially in memory, so we read until
72+
// All applications are stored sequentially in memory, so we read until
7373
// we fail to parse.
7474
loop {
7575
let mut appdata = vec![0u8; 8];
@@ -112,7 +112,7 @@ impl AppAttributes {
112112
// footer.
113113
//
114114
// TODO(george-cosma): This is not always true, `get_binary_end`
115-
// does not make sense if the appliccation is just padding. This can
115+
// does not make sense if the application is just padding. This can
116116
// crash the process.
117117
let binary_end_offset = header.get_binary_end();
118118

@@ -176,18 +176,18 @@ impl AppAttributes {
176176
let mut apps_counter = 0;
177177
let mut apps_details: Vec<AppAttributes> = vec![];
178178

179-
// All aplications are stored sequentially in memory, so we read until
179+
// All applications are stored sequentially in memory, so we read until
180180
// we fail to parse.
181181
loop {
182-
// The tockloader protocol only supports 32-bit architechtures,
182+
// The tockloader protocol only supports 32-bit architectures,
183183
// though in the future support will be extended to 64-bit.
184184
let mut pkt = (appaddr as u32).to_le_bytes().to_vec();
185185
let length = (8_u16).to_le_bytes().to_vec();
186186
for i in length {
187187
pkt.push(i);
188188
}
189189

190-
// Read the first 8 bytes, which is the lenght of a TLV header.
190+
// Read the first 8 bytes, which is the length of a TLV header.
191191
let (_, appdata) =
192192
issue_command(port, Command::ReadRange, pkt, true, 8, Response::ReadRange).await?;
193193

tockloader-lib/src/attributes/system_attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl SystemAttributes {
182182
/// - Ok(result): if attributes were read successfully
183183
/// - Err(TockloaderError::MisconfiguredBoard): if no start address is found or valid
184184
/// - Err(TockloaderError::MisconfiguredBoard): if attributes don't follow the UTF-8 format
185-
/// - Err(TockloaderError::ProbeRsReadError): if reading fails
185+
/// - Err(TockloaderError::SerialReadError): if reading fails
186186
pub(crate) async fn read_system_attributes_serial(
187187
port: &mut SerialStream,
188188
) -> Result<Self, TockloaderError> {

0 commit comments

Comments
 (0)