]> sigrok.org Git - sigrok-cli.git/blobdiff - decode.c
decode: Optionally print annotation class with PD annotations
[sigrok-cli.git] / decode.c
index 4ddf34afbbaf00db414a041f4ef2e61ddc27bc0f..ac0e3e17cc283e51d16a0aa8e7c21be846faf657 100644 (file)
--- a/decode.c
+++ b/decode.c
@@ -684,6 +684,8 @@ void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data)
                show_class = TRUE;
                show_abbrev = TRUE;
        }
+       if (opt_pd_ann_class)
+               show_class = TRUE;
 
        /*
         * Display the annotation's fields after the layout was