Definitions.h: shortest allowed count time is 5 us

This commit is contained in:
2023-07-04 16:37:56 +02:00
parent 52902d352e
commit 3067604e2a
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -72,7 +72,7 @@ class DetectorSettings extends Component<MyProps, MyState> {
}
if (!count_err) {
if (Number(count_time) < 0)
if (Number(count_time) < 5)
count_err = true;
}