]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix spi test (again)
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 27 Jan 2022 15:45:01 +0000 (10:45 -0500)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 27 Jan 2022 15:45:01 +0000 (10:45 -0500)
apps/spi-test/app.c

index b2ed436f2bae6e6916b00e84d8ac72578146d415..fc78bbc52c2b63ed66c930ce589c8415790dd7f5 100644 (file)
@@ -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);
 }