From 3067604e2a1cc003d53782e9b80cfb216898db76 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Tue, 4 Jul 2023 16:37:56 +0200 Subject: [PATCH] Definitions.h: shortest allowed count time is 5 us --- common/Definitions.h | 2 +- frontend_ui/src/components/DetectorSettings.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Definitions.h b/common/Definitions.h index 69758c91..d8bd9980 100644 --- a/common/Definitions.h +++ b/common/Definitions.h @@ -18,7 +18,7 @@ #define FPGA_BUFFER_LOCATION_SIZE (RAW_MODULE_SIZE * sizeof(short)) -#define MIN_COUNT_TIME_IN_US 10 +#define MIN_COUNT_TIME_IN_US 5 #define MIN_FRAME_TIME_HALF_SPEED_IN_US 1000 #define MIN_FRAME_TIME_FULL_SPEED_IN_US 470 #define MAX_FRAME_TIME 2000 diff --git a/frontend_ui/src/components/DetectorSettings.tsx b/frontend_ui/src/components/DetectorSettings.tsx index e4ac48ca..fa0d7e1a 100644 --- a/frontend_ui/src/components/DetectorSettings.tsx +++ b/frontend_ui/src/components/DetectorSettings.tsx @@ -72,7 +72,7 @@ class DetectorSettings extends Component { } if (!count_err) { - if (Number(count_time) < 0) + if (Number(count_time) < 5) count_err = true; }