 }
 
 int run_tests() {
+#if RUN_REPEATEDLY
+  // Persist any errors we see between runs
+  static int first_failure = 0;
+#else
+  int first_failure = 0;
+#endif
+
   for(int i = 0; tests[i].func != NULL; i++) {    
     Tsunami.begin();
     

  // Temporary values until we get production boards
  assert_nearly_equal("input_amp_6", Tsunami.measurePeakVoltage(), 3300, 100);

  Tsunami.setAmplitude(1000);
  delay(500);
  assert_nearly_equal("input_amp_1", Tsunami.measurePeakVoltage(), -1150, 100);

  Tsunami.setAmplitude(0);
  delay(500);

#include <tsunami.h>

#define LED_PIN 13
#define RUN_REPEATEDLY true

char err[255];

