Skip to content

Commit b35fbdc

Browse files
committed
Allow microcontroller.nvm to be bigger than 8k
Signed-off-by: Hans Maerki <[email protected]>
1 parent f15d4b2 commit b35fbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/nvm/ByteArray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
//|
3636
static mp_obj_t nvm_bytearray_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
3737
nvm_bytearray_obj_t *self = MP_OBJ_TO_PTR(self_in);
38-
uint16_t len = common_hal_nvm_bytearray_get_length(self);
38+
uint32_t len = common_hal_nvm_bytearray_get_length(self);
3939
switch (op) {
4040
case MP_UNARY_OP_BOOL:
4141
return mp_obj_new_bool(len != 0);

0 commit comments

Comments
 (0)