From 9134c13c7316d1cff407bfd5644a865dd0af78bd Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Thu, 27 Apr 2017 14:50:02 +0800 Subject: [PATCH] Fix SPI master CI test --- components/driver/test/test_spi_master.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/driver/test/test_spi_master.c b/components/driver/test/test_spi_master.c index 665f432481..86eea5cd46 100644 --- a/components/driver/test/test_spi_master.c +++ b/components/driver/test/test_spi_master.c @@ -76,8 +76,8 @@ TEST_CASE("SPI Master clockdiv calculation routines", "[spi]") check_spi_pre_n_for(800000, 2, 50); check_spi_pre_n_for(100000, 16, 50); check_spi_pre_n_for(333333, 4, 60); - check_spi_pre_n_for(900000, 4, 60); -// check_spi_pre_n_for(1, 8192, 64); //Actually should generate the minimum clock speed, 152Hz + check_spi_pre_n_for(900000, 2, 44); + check_spi_pre_n_for(1, 8192, 64); //Actually should generate the minimum clock speed, 152Hz check_spi_pre_n_for(26000000, 1, 3); ret=spi_bus_free(HSPI_HOST); @@ -255,7 +255,7 @@ TEST_CASE("SPI Master test, interaction of multiple devs", "[spi][ignore]") { ret=spi_bus_remove_device(handle2); + TEST_ASSERT(ret==ESP_OK); destroy_spi_bus(handle1); - }