Skip to content

Commit

Permalink
fix wrong data length when save card data
Browse files Browse the repository at this point in the history
  • Loading branch information
solosky committed Feb 4, 2024
1 parent 74d06d7 commit 360d6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fw/application/src/app/chameleon/port/fds_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bool fds_read_sync(uint16_t id, uint16_t key, uint16_t* max_length, uint8_t *buf
bool fds_write_sync(uint16_t id, uint16_t key, uint16_t data_length_words, void *buffer) {
char path[VFS_MAX_PATH_LEN];
fds_map_file_name(id, key, path);
int32_t bytes_written = vfs_get_default_driver()->write_file_data(path, buffer, data_length_words * 4);
int32_t bytes_written = vfs_get_default_driver()->write_file_data(path, buffer, data_length_words);
NRF_LOG_INFO("fds_write_sync: id=%X, key=%d, bytes_written=%d", id, key, bytes_written);
return bytes_written > 0;
}
Expand Down

0 comments on commit 360d6b8

Please sign in to comment.