Say that batch was receive
This commit is contained in:
2
main.go
2
main.go
@@ -74,6 +74,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
||||
)
|
||||
}
|
||||
|
||||
log.Println("Got batch!")
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("ok"))
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ static void measure_task(void *arg)
|
||||
count = 0;
|
||||
}
|
||||
|
||||
int jitter = (rand() % 10) - 5; // ±2 ms random
|
||||
int jitter = rand() % 41; // 0..40 ms
|
||||
vTaskDelayUntil(&last_wake,
|
||||
pdMS_TO_TICKS(SAMPLE_PERIOD_MS + jitter));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user