From a26e6786eea417e73ba09b857a1a6718651a3eb9 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Thu, 27 Jan 2022 10:45:01 -0500 Subject: fix spi test (again) --- apps/spi-test/app.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/spi-test/app.c b/apps/spi-test/app.c index b2ed436f..fc78bbc5 100644 --- a/apps/spi-test/app.c +++ b/apps/spi-test/app.c @@ -10,7 +10,9 @@ void app_init(void) { spi_flash_init(); uint8_t buf[3] = {1, 2, 3}; + watch_set_pin_level(A3, false); spi_flash_command(CMD_ENABLE_WRITE); + watch_set_pin_level(A3, true); // note that you will need to erase the sector to write different values later spi_flash_write_data(0, buf, 3); } -- cgit v1.2.3