diff options
author | Damien George <damien@micropython.org> | 2024-09-25 17:51:49 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-10-09 23:34:27 +1100 |
commit | 197becbdcc0f8e6fd03ddaa921c32193a4a409db (patch) | |
tree | ebb68b956368406946abbbdb34e5574cf41c47bf /tests/extmod/machine_spi_rate.py | |
parent | 55dc482d3e439885bd38072bc602c3e0828f2406 (diff) | |
download | micropython-197becbdcc0f8e6fd03ddaa921c32193a4a409db.tar.gz micropython-197becbdcc0f8e6fd03ddaa921c32193a4a409db.zip |
tests: Tweak machine SPI and UART tests to work with esp32c6.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/machine_spi_rate.py')
-rw-r--r-- | tests/extmod/machine_spi_rate.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/extmod/machine_spi_rate.py b/tests/extmod/machine_spi_rate.py index 6ee4619fa1..19371d3bd7 100644 --- a/tests/extmod/machine_spi_rate.py +++ b/tests/extmod/machine_spi_rate.py @@ -21,7 +21,8 @@ if "pyboard" in sys.platform: elif "rp2" in sys.platform: spi_instances = ((0, Pin(18), Pin(19), Pin(16)),) elif "esp32" in sys.platform: - if "ESP32C3" in str(sys.implementation): + impl = str(sys.implementation) + if "ESP32C3" in impl or "ESP32C6" in impl: spi_instances = ((1, Pin(4), Pin(5), Pin(6)),) else: spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21))) |