                 gen_rising_edge(pinRaspiInt);  //generate interrupt for EasyRaceLapTimer software
 
                 uint32_t now = millis();
-                uint32_t diff = now - lastMilliseconds;
+                uint32_t diff = now - lastMilliseconds; //time diff with the last lap (or with the race start)
                 if (timeCalibrationConst) {
                     diff = diff + (int32_t)diff/timeCalibrationConst;
                 }

    remove already existing items from queue
*/

#define API_VERSION 2 // version number to be increased with each API change (int16)

// #define DEBUG



//----- Lap timings--------------------------------
uint32_t lastMilliseconds = 0;
uint32_t raceStartTime = 0;
#define MIN_MIN_LAP_TIME 1 //seconds
#define MAX_MIN_LAP_TIME 60 //seconds
uint8_t minLapTime = 5; //seconds
