Skip to content

Commit 20bc7b7

Browse files
committed
changes STM32 board
1 parent 37a8c21 commit 20bc7b7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ext_mod/lcd_bus/common_src/spi_bus.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,9 @@
123123
uint8_t firstbit;
124124

125125
if (args[ARG_lsb_first].u_bool) {
126-
#ifdef MICROPY_PY_MACHINE_SPI_LSB
127-
firstbit = MICROPY_PY_MACHINE_SPI_LSB;
128-
#else
129-
firstbit = 1;
130-
#endif
126+
firstbit = 1;
131127
} else {
132-
#ifdef MICROPY_PY_MACHINE_SPI_MSB
133-
firstbit = MICROPY_PY_MACHINE_SPI_MSB;
134-
#else
135-
firstbit = 0;
136-
#endif
128+
firstbit = 0;
137129
}
138130

139131
spi_args[0] = mp_obj_new_int_from_uint(args[ARG_host].u_int);

0 commit comments

Comments
 (0)