summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-06-16 16:32:24 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2017-06-16 16:36:39 +0200
commiteb88372396c2264948bc05586fb54dc318266973 (patch)
treea6ddaa73878fc0c5e0c891168d85e3ac7a384c09 /decoder.c
parentb197383cfb39b39ff04644855eef57f5d3c18bc1 (diff)
downloadlibsigrokdecode-eb88372396c2264948bc05586fb54dc318266973.tar.gz
libsigrokdecode-eb88372396c2264948bc05586fb54dc318266973.zip
Drop support for PD API version 2.
All decoders must be of PD API version 3 now.
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder.c b/decoder.c
index 64292bc..d7395a6 100644
--- a/decoder.c
+++ b/decoder.c
@@ -686,8 +686,8 @@ SRD_API int srd_decoder_load(const char *module_name)
* PDs of different API versions are incompatible and cannot work.
*/
apiver = srd_decoder_apiver(d);
- if (apiver != 2 && apiver != 3) {
- srd_exception_catch("Only PD API version 2/3 is supported, "
+ if (apiver != 3) {
+ srd_exception_catch("Only PD API version 3 is supported, "
"decoder %s has version %ld", module_name, apiver);
fail_txt = "API version mismatch";
goto err_out;