File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
ext_mod/lcd_bus/esp32_src Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -751,9 +751,13 @@ def compile(): # NOQA
751
751
with open (mpconfigboard_path , 'wb' ) as f :
752
752
f .write (data .encode ('utf-8' ))
753
753
754
- machine_hw_spi_src = 'micropy_updates/esp32/machine_hw_spi.c'
755
- machine_hw_spi_dst = 'lib/micropython/ports/esp32/machine_hw_spi.c'
756
- shutil .copyfile (machine_hw_spi_src , machine_hw_spi_dst )
754
+ src_path = 'micropy_updates/esp32'
755
+ dst_path = 'lib/micropython/ports/esp32'
756
+
757
+ for file in os .listdir (src_path ):
758
+ src_file = os .path .join (src_path , file )
759
+ dst_file = os .path .join (dst_path , file )
760
+ shutil .copyfile (src_file , dst_file )
757
761
758
762
mpconfigport_path = 'lib/micropython/ports/esp32/mpconfigport.h'
759
763
Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ typedef struct _micropy_spi_bus_obj_t {
31
31
int8_t mosi ;
32
32
int8_t miso ;
33
33
int8_t active_devices ;
34
- enum {
35
- } state ;
34
+ int state ;
36
35
37
36
} micropy_spi_bus_obj_t ;
38
37
Original file line number Diff line number Diff line change @@ -56,8 +56,7 @@ typedef struct _micropy_sd_spi_bus_obj_t {
56
56
int8_t mosi ;
57
57
int8_t miso ;
58
58
int8_t active_devices ;
59
- enum {
60
- } state ;
59
+ int state ;
61
60
62
61
} micropy_sd_spi_bus_obj_t ;
63
62
You can’t perform that action at this time.
0 commit comments