Skip to content

Commit

Permalink
lib/csp: Fix missing endian convert
Browse files Browse the repository at this point in the history
Fixes a missing conversion process to little-endian for the session
ID in the reply telemetry of the file upload.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
  • Loading branch information
sasataku committed Nov 22, 2024
1 parent 3d99ded commit 9e3756f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csp/upload.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void csp_stack_upload_data_reply(struct session_entry *session, uint8_t c
entry = &tlm->entry[session->reply_count];

tlm->telemetry_id = command_id;
tlm->session_id = session->id;
tlm->session_id = sys_cpu_to_le16(session->id);
entry->error_code = sys_cpu_to_le32(err_code);
entry->offset = sys_cpu_to_le32(offset);
entry->size = sys_cpu_to_le32(size);
Expand Down

0 comments on commit 9e3756f

Please sign in to comment.