summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-01-27 10:45:01 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-01-27 10:45:01 -0500
commita26e6786eea417e73ba09b857a1a6718651a3eb9 (patch)
tree2a5fb75a5ff705098837cfe0b4d1f5923dd3110d /apps
parent5e4dc9ae5103ecec068c4e3fc4baec3d76bd05a4 (diff)
downloadSensor-Watch-a26e6786eea417e73ba09b857a1a6718651a3eb9.tar.gz
Sensor-Watch-a26e6786eea417e73ba09b857a1a6718651a3eb9.tar.bz2
Sensor-Watch-a26e6786eea417e73ba09b857a1a6718651a3eb9.zip
fix spi test (again)
Diffstat (limited to 'apps')
-rw-r--r--apps/spi-test/app.c2
1 files changed, 2 insertions, 0 deletions
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);
}