From: Joey Castillo Date: Thu, 27 Jan 2022 15:45:01 +0000 (-0500) Subject: fix spi test (again) X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=a26e6786eea417e73ba09b857a1a6718651a3eb9;p=sensor-watch.git fix spi test (again) --- diff --git a/apps/spi-test/app.c b/apps/spi-test/app.c index b2ed436..fc78bbc 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); }