Skip to content

Commit 7a96291

Browse files
authored
Merge pull request #3283 from hathach/fix-typo
fix typo
2 parents e72a9eb + 044512c commit 7a96291

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/device/mtp/src/mtp_fs_example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ storage_info_t storage_info = {
5959
.free_space_in_bytes = 0, // calculated at runtime
6060
.free_space_in_objects = 0, // calculated at runtime
6161
.storage_description = {
62-
.count = (TU_FIELD_SZIE(storage_info_t, storage_description)-1) / sizeof(uint16_t),
62+
.count = (TU_FIELD_SIZE(storage_info_t, storage_description)-1) / sizeof(uint16_t),
6363
.utf16 = STORAGE_DESCRIPTRION
6464
},
6565
.volume_identifier = {
66-
.count = (TU_FIELD_SZIE(storage_info_t, volume_identifier)-1) / sizeof(uint16_t),
66+
.count = (TU_FIELD_SIZE(storage_info_t, volume_identifier)-1) / sizeof(uint16_t),
6767
.utf16 = VOLUME_IDENTIFIER
6868
}
6969
};

src/common/tusb_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// Macros Helper
3636
//--------------------------------------------------------------------+
3737
#define TU_ARRAY_SIZE(_arr) ( sizeof(_arr) / sizeof(_arr[0]) )
38-
#define TU_FIELD_SZIE(_type, _field) (sizeof(((_type *)0)->_field))
38+
#define TU_FIELD_SIZE(_type, _field) (sizeof(((_type *)0)->_field))
3939
#define TU_MIN(_x, _y) ( ( (_x) < (_y) ) ? (_x) : (_y) )
4040
#define TU_MAX(_x, _y) ( ( (_x) > (_y) ) ? (_x) : (_y) )
4141
#define TU_DIV_CEIL(n, d) (((n) + (d) - 1) / (d))

0 commit comments

Comments
 (0)