]> granicus.if.org Git - esp-idf/commitdiff
test_spi_slave: fix warnings about unused identifiers
authorAnton Maklakov <anton@espressif.com>
Sat, 13 Oct 2018 07:13:02 +0000 (15:13 +0800)
committerAnton Maklakov <anton@espressif.com>
Sun, 21 Oct 2018 07:11:45 +0000 (15:11 +0800)
components/driver/test/test_spi_slave.c

index c0ebe7ade9a957b704c4357fc04aa99a7594bed2..b38eaa1bc5c9c4af00370fb362597bb0c78cc70d 100644 (file)
@@ -9,6 +9,9 @@
 #include "esp_log.h"
 #include "sdkconfig.h"
 
+#ifndef CONFIG_SPIRAM_SUPPORT
+//This test should be removed once the timing test is merged.
+
 #define PIN_NUM_MISO 25
 #define PIN_NUM_MOSI 23
 #define PIN_NUM_CLK  19
@@ -75,9 +78,6 @@ static void slave_init()
     TEST_ESP_OK( spi_slave_initialize(VSPI_HOST, &buscfg, &slvcfg, 2) );
 }
 
-#ifndef CONFIG_SPIRAM_SUPPORT
-//This test should be removed once the timing test is merged.
-
 TEST_CASE("test slave startup","[spi]")
 {
     uint8_t master_txbuf[320]=MASTER_SEND;
@@ -144,4 +144,4 @@ TEST_CASE("test slave startup","[spi]")
     ESP_LOGI(MASTER_TAG, "test passed.");
 }
 
-#endif
\ No newline at end of file
+#endif // !CONFIG_SPIRAM_SUPPORT