Skip to content

Commit 5d3d178

Browse files
committed
updating the RP2 SPI
1 parent b97f0fa commit 5d3d178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropy_updates/rp2/machine_spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ mp_obj_t machine_spi_make_new(const mp_obj_type_t *type, size_t n_args, size_t n
177177

178178
machine_hw_spi_bus_obj_t *spi_bus = &rp2_machine_spi_bus_obj[spi_id];
179179
if (spi_bus->sck == MP_OBJ_NULL) {
180-
if (spi_id == 0 && .sck = MP_OBJ_NULL)
180+
if (spi_id == 0) {
181181
spi_bus->sck = mp_obj_new_int(MICROPY_HW_SPI0_SCK);
182182
spi_bus->mosi = mp_obj_new_int(MICROPY_HW_SPI0_MOSI);
183183
spi_bus->miso = mp_obj_new_int(MICROPY_HW_SPI0_MISO);

0 commit comments

Comments
 (0)