     dataFile.write(output,25);
     dataFile.flush();
 
-    byte reset= 0;
-#if DEBUG
-    if (ble_connected()) {
-      char temp[32];
-      sprintf(temp,"resetting:%10lu:%10lu\n",lastMeasurement,time);
-      ble_write_bytes( (unsigned char *)temp,32);
-    }
-#endif
-    if ((time-lastMeasurement)>timeBetweenRounds) {
-#if DEBUG
-      if (ble_connected()) {
-        ble_write_bytes( (unsigned char *)"reset\n",6);
-      }
-#endif
-      reset=1;
-      char result[37];
-      // length of output should be: 7 fixed, 10 begin, 10 time , 10 distance;
-      sprintf(result,"Run:%10lu:%10lu:%10lu\n",beginRun,time,curDistance);
-      runs.write(result,37);
-      runs.flush();
-      curDistance=distance;
-      beginRun=millis();
-    }
-#if DEBUG
-    stroller_ble_print();
-#endif
     lastMeasurement = time;
     hadRound=0;
 

      else if ( 'c' == temp ) { // aCcept or commit command from smartphone, later used for resetting
        curDistance=0;
        ble_write('r');
        resetRun();
        ble_write('\n');
      }
    }
