From: Gerhard Sittig Date: Thu, 28 Sep 2023 10:49:12 +0000 (+0200) Subject: rdtech-dps: rephrase how model specific ranges are handled X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=1bd63ed77056308585b80ed1b076b3b0f114be0a;hp=1bd63ed77056308585b80ed1b076b3b0f114be0a;p=libsigrok.git rdtech-dps: rephrase how model specific ranges are handled Commit 02a4f485de76 implemented ranges support such that _all_ models including every RD as well as DPS device announced ranges, it's just that most of them happen to support a single range. Use this fact, accept any zero based index, and drop the "normalization" to strict 0/1 values except for one RD specific code path when getting the current state of multi-range supporting devices. Tell models with "effectively no ranges" from devices which "support multile ranges". This shall increase robustness and improve maintainability. Simplifies future extensions when more ranges are involved. ---