Skip to content

Commit bc8597d

Browse files
committed
fixup for nrf
1 parent 10c18f1 commit bc8597d

File tree

1 file changed

+2
-2
lines changed
  • ports/nrf/modules/machine

1 file changed

+2
-2
lines changed

ports/nrf/modules/machine/spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ STATIC mp_obj_t mp_machine_spi_write(mp_obj_t self, mp_obj_t wr_buf, mp_obj_t _b
408408
spi_transfer(self, src.len, (const uint8_t*)src.buf, NULL, bits);
409409
return mp_const_none;
410410
}
411-
MP_DEFINE_CONST_FUN_OBJ_2(mp_machine_spi_write_obj, mp_machine_spi_write);
411+
MP_DEFINE_CONST_FUN_OBJ_3(mp_machine_spi_write_obj, mp_machine_spi_write);
412412

413413
STATIC mp_obj_t mp_machine_spi_write_readinto(mp_obj_t self, mp_obj_t wr_buf, mp_obj_t rd_buf, mp_obj_t _bits) {
414414
mp_buffer_info_t src;
@@ -422,7 +422,7 @@ STATIC mp_obj_t mp_machine_spi_write_readinto(mp_obj_t self, mp_obj_t wr_buf, mp
422422
spi_transfer(self, src.len, src.buf, dest.buf, bits);
423423
return mp_const_none;
424424
}
425-
MP_DEFINE_CONST_FUN_OBJ_3(mp_machine_spi_write_readinto_obj, mp_machine_spi_write_readinto);
425+
MP_DEFINE_CONST_FUN_OBJ_4(mp_machine_spi_write_readinto_obj, mp_machine_spi_write_readinto);
426426

427427

428428
STATIC const mp_machine_spi_p_t machine_hard_spi_p = {

0 commit comments

Comments
 (0)