aboutsummaryrefslogtreecommitdiff
path: root/stmhal/i2c.c
diff options
context:
space:
mode:
authorDamien George2014-03-29 13:43:38 +0000
committerDamien George2014-03-29 13:43:38 +0000
commit3e1a5c10c5bf0a38c2ed3b9986b43b8cb8227b2f (patch)
tree76c6f10fcf7d669c52d2b9d84483e8c4f937b9d9 /stmhal/i2c.c
parent07ddab529cb0953c473d30795e4dc3c6dfff0d89 (diff)
py: Rename old const type objects to mp_type_* for consistency.
Diffstat (limited to 'stmhal/i2c.c')
-rw-r--r--stmhal/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c
index 9556e32c9..ab37f756b 100644
--- a/stmhal/i2c.c
+++ b/stmhal/i2c.c
@@ -124,7 +124,7 @@ STATIC mp_obj_t pyb_i2c_mem_read(uint n_args, const mp_obj_t *args) {
machine_uint_t n = mp_obj_get_int(args[3]);
byte *data;
- mp_obj_t o = mp_obj_str_builder_start(&bytes_type, n, &data);
+ mp_obj_t o = mp_obj_str_builder_start(&mp_type_bytes, n, &data);
HAL_StatusTypeDef status = HAL_I2C_Mem_Read(self->i2c_handle, i2c_addr, mem_addr, I2C_MEMADD_SIZE_8BIT, data, n, 200);
//printf("Read got %d\n", status);