Skip to content

Commit ce49be4

Browse files
MaureenHelmdpgeorge
authored andcommitted
zephyr: Replace zephyr integer types with C99 types.
Zephyr v2.4.0 stopped using custom integer types in favor of C99 types instead. Signed-off-by: Maureen Helm <[email protected]>
1 parent 319437d commit ce49be4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ports/zephyr/machine_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ STATIC int machine_hard_i2c_transfer_single(mp_obj_base_t *self_in, uint16_t add
9797
struct i2c_msg msg;
9898
int ret;
9999

100-
msg.buf = (u8_t *)buf;
100+
msg.buf = (uint8_t *)buf;
101101
msg.len = len;
102102
msg.flags = 0;
103103

ports/zephyr/zephyr_storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ typedef struct _zephyr_flash_area_obj_t {
146146
const struct flash_area *area;
147147
int block_size;
148148
int block_count;
149-
u8_t id;
149+
uint8_t id;
150150
} zephyr_flash_area_obj_t;
151151

152152
STATIC void zephyr_flash_area_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {

0 commit comments

Comments
 (0)