File 0010-fix-Update-limit-sample-rates-for-SLogic-16U3-based-.patch of Package libsigrok
From fca954db2c86489d2380b84d56b4140b7146f159 Mon Sep 17 00:00:00 2001
From: taorye <taorye@outlook.com>
Date: Fri, 12 Dec 2025 15:12:50 +0800
Subject: [PATCH 10/17] fix: Update limit sample rates for SLogic 16U3 based on
platform
---
src/hardware/sipeed-slogic-analyzer/api.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/hardware/sipeed-slogic-analyzer/api.c b/src/hardware/sipeed-slogic-analyzer/api.c
index f9e478efa..90224259f 100644
--- a/src/hardware/sipeed-slogic-analyzer/api.c
+++ b/src/hardware/sipeed-slogic-analyzer/api.c
@@ -115,7 +115,12 @@ static const uint64_t samplerates_slogic16u3[] = {
};
static const uint64_t samplechannels_slogic16u3[] = { /*2, */4, 8, 16 };
-static const uint64_t limit_samplerates_slogic16u3[] = { /*SR_MHZ(1500), */SR_MHZ(800), SR_MHZ(400), SR_MHZ(200) };
+static const uint64_t limit_samplerates_slogic16u3[] =
+#ifdef _WIN32
+ { /*SR_MHZ(1500), */SR_MHZ(400), SR_MHZ(200), SR_MHZ(100) };
+#else
+ { /*SR_MHZ(1500), */SR_MHZ(800), SR_MHZ(400), SR_MHZ(200) };
+#endif
static const char *patterns[] = {
[PATTERN_MODE_NOMAL] = "PATTERN_MODE_NOMAL",
--
2.52.0